.gitlab-ci.yml 860 Bytes
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

Martin Reinecke's avatar
Martin Reinecke committed
4 5
stages:
  - test
6

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

before_script:
Martin Reinecke's avatar
tweaks  
Martin Reinecke committed
11 12 13 14 15 16
  - apt-get update
  - sh ci/install_basics.sh
  - pip install --process-dependency-links -r ci/requirements.txt
  - pip3 install --process-dependency-links -r ci/requirements.txt
  - pip install --user .
  - pip3 install --user .
Jait Dixit's avatar
Jait Dixit committed
17

Martin Reinecke's avatar
Martin Reinecke committed
18 19 20 21 22 23 24 25 26
test_min:
  stage: test
  script:
    - 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; }'
27

28
pages:
29
  script:
Martin Reinecke's avatar
tweaks  
Martin Reinecke committed
30
  - sh docs/generate.sh
31
  - mv docs/build/ public/
32 33
  artifacts:
    paths:
34
    - public
35
  only:
Martin Reinecke's avatar
Martin Reinecke committed
36
  - NIFTy_4