-
Koen van der Veen authored83ddf45b
This GitLab CI configuration is valid.
Learn more
default:
image: python:3.6
before_script:
- apt-get update && apt-get install -y libsqlcipher-dev && apt-get install -y libgl1-mesa-glx
- pip install -e .
read_notebooks:
script:
- nbdev_read_nbs
check if notebooks are clean:
script:
- echo "Check we are starting with clean git checkout"
- if [ -n "$(git status -uno -s)" ]; then echo "git status is not clean"; false; fi
- echo "Trying to strip out notebooks"
- nbdev_clean_nbs
- echo "Check that strip out was unnecessary"
- git status -s # display the status to see which nbs need cleaning up
- if [ -n "$(git status -uno -s)" ]; then echo -e "!!! Detected unstripped out notebooks\n!!!Remember to run nbdev_install_git_hooks"; false; fi
check if there is diff library/nbs:
script:
- if [ -n "$(nbdev_diff_nbs)" ]; then echo -e "!!! Detected difference between the notebooks and the library"; false; fi
run tests:
stage: test
script:
- ./tools/test_in_ci.sh
pages:
only:
- dev
inherit:
default: false
image: ruby:2.7
stage: deploy
before_script:
script:
- cd docs
- bundle install
- bundle exec jekyll build -d ../public
artifacts:
paths:
- public