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

Martin Reinecke's avatar
Martin Reinecke committed
20
test_mpi:
Martin Reinecke's avatar
Martin Reinecke committed
21 22
  stage: test
  script:
Martin Reinecke's avatar
Martin Reinecke committed
23
    - pip install --user .
Martin Reinecke's avatar
Martin Reinecke committed
24
    - pip3 install --user .
Martin Reinecke's avatar
Martin Reinecke committed
25 26
    - OMP_NUM_THREADS=1 mpiexec -n 2 nosetests -q
    - OMP_NUM_THREADS=1 mpiexec -n 2 nosetests3 -q
Martin Reinecke's avatar
Martin Reinecke committed
27

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