.gitlab-ci.yml 755 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
27
28
    - 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
29

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