.gitlab-ci.yml 1.08 KB
Newer Older
Martin Reinecke's avatar
Martin Reinecke committed
1
#image: ubuntu:artful
Martin Reinecke's avatar
Martin Reinecke committed
2
image: debian:testing-slim
Jait Dixit's avatar
Jait Dixit committed
3

4 5 6
# stages:
#   - test

Jait Dixit's avatar
Jait Dixit committed
7 8 9 10 11
variables:
  DOCKER_DRIVER: overlay

before_script:
  - apt-get update
Martin Reinecke's avatar
Martin Reinecke committed
12 13 14
  - sh ci/install_basics.sh
  - pip install --process-dependency-links -r ci/requirements.txt
  - pip3 install --process-dependency-links -r ci/requirements.txt
15
  - python2 setup.py install
Mihai Baltac's avatar
Mihai Baltac committed
16
  - python3 setup.py install
Jait Dixit's avatar
Jait Dixit committed
17

18
  
19 20 21 22 23 24 25 26 27 28 29 30 31
# test_min:
#   stage: test
#   script:
#     - pip install --user .
#     - pip3 install --user .
#     - nosetests -q
#     - nosetests3 -q
#     - OMP_NUM_THREADS=1 mpiexec --allow-run-as-root -n 4 nosetests -q 2>/dev/null
#     - OMP_NUM_THREADS=1 mpiexec --allow-run-as-root -n 4 nosetests3 -q 2>/dev/null
#     - nosetests -q --with-coverage --cover-package=nifty4 --cover-branches --cover-erase
#     - >
#       coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'

32
pages:
33
  script:
Mihai Baltac's avatar
Mihai Baltac committed
34
  - python docs/better_apidoc.py -l -e -d 2 -t docs/generation-templates -o docs/source/mod nifty4
35
  - sphinx-build -b html docs/source/ docs/build/
36
  - mv docs/build/ public/
37 38
  artifacts:
    paths:
39
    - public
40
  only:
41
  - nifty_documentation