.gitlab-ci.yml 721 Bytes
Newer Older
Philipp Arras's avatar
Philipp Arras committed
1
image: parras/nifty:latest
Jait Dixit's avatar
Jait Dixit committed
2

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

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

Martin Reinecke's avatar
Martin Reinecke committed
10
test_python2:
Martin Reinecke's avatar
Martin Reinecke committed
11 12
  stage: test
  script:
Martin Reinecke's avatar
Martin Reinecke committed
13
    - pip install --user .
Philipp Arras's avatar
Philipp Arras committed
14
    - OMP_NUM_THREADS=1 mpiexec -n 2 nosetests -q 2>/dev/null
Martin Reinecke's avatar
Martin Reinecke committed
15 16 17
    - nosetests -q --with-coverage --cover-package=nifty4 --cover-branches --cover-erase
    - >
      coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'
18

Martin Reinecke's avatar
Martin Reinecke committed
19 20 21 22 23
test_python3:
  stage: test
  script:
    - pip3 install --user .
    - nosetests3 -q
Philipp Arras's avatar
Philipp Arras committed
24
    - OMP_NUM_THREADS=1 mpiexec -n 2 nosetests3 -q 2>/dev/null
Martin Reinecke's avatar
Martin Reinecke committed
25

26
pages:
Martin Reinecke's avatar
cleanup  
Martin Reinecke committed
27
  stage: release
28
  script:
Martin Reinecke's avatar
Martin Reinecke committed
29
    - pip install --user .
Martin Reinecke's avatar
Martin Reinecke committed
30
    - sh docs/generate.sh > /dev/null
Martin Reinecke's avatar
Martin Reinecke committed
31
    - mv docs/build/ public/
32 33
  artifacts:
    paths:
34
    - public
Martin Reinecke's avatar
cleanup  
Martin Reinecke committed
35 36
  only:
  - NIFTy_4