.gitlab-ci.yml 778 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 14
    - pwd
    - whoami
Martin Reinecke's avatar
Martin Reinecke committed
15
    - pip install --user .
Martin Reinecke's avatar
Martin Reinecke committed
16 17
    - pip3 install --user .
    - nosetests3 -q
Martin Reinecke's avatar
Martin Reinecke committed
18 19 20
    - nosetests -q --with-coverage --cover-package=nifty4 --cover-branches --cover-erase
    - >
      coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'
21

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

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