.gitlab-ci.yml 931 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_scalar:
Martin Reinecke's avatar
Martin Reinecke committed
11 12
  stage: test
  script:
Martin Reinecke's avatar
Martin Reinecke committed
13
    - python setup.py install --user -f
Martin Reinecke's avatar
Martin Reinecke committed
14 15 16
    - nosetests -q --with-coverage --cover-package=nifty4 --cover-branches --cover-erase
    - >
      coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'
17

Martin Reinecke's avatar
Martin Reinecke committed
18
test_python3_scalar:
Martin Reinecke's avatar
Martin Reinecke committed
19 20
  stage: test
  script:
Martin Reinecke's avatar
Martin Reinecke committed
21
    - python3 setup.py install --user -f
Martin Reinecke's avatar
Martin Reinecke committed
22 23 24 25 26 27
    - nosetests3 -q

test_python2_mpi:
  stage: test
  script:
    - python setup.py install --user -f
28
    - OMP_NUM_THREADS=1 mpiexec -n 2 nosetests -q 2> /dev/null
Martin Reinecke's avatar
Martin Reinecke committed
29 30 31 32 33

test_python3_mpi:
  stage: test
  script:
    - python3 setup.py install --user -f
34
    - OMP_NUM_THREADS=1 mpiexec -n 2 nosetests3 -q 2> /dev/null
Martin Reinecke's avatar
Martin Reinecke committed
35

36
pages:
Martin Reinecke's avatar
cleanup  
Martin Reinecke committed
37
  stage: release
38
  script:
Martin Reinecke's avatar
Martin Reinecke committed
39
    - python setup.py install --user -f
Martin Reinecke's avatar
Martin Reinecke committed
40
    - sh docs/generate.sh
Martin Reinecke's avatar
Martin Reinecke committed
41
    - mv docs/build/ public/
42 43
  artifacts:
    paths:
44
    - public
Martin Reinecke's avatar
cleanup  
Martin Reinecke committed
45 46
  only:
  - NIFTy_4