.gitlab-ci.yml 1.55 KB
Newer Older
Martin Reinecke's avatar
Martin Reinecke committed
1
#image: ubuntu:artful
Martin Reinecke's avatar
Martin Reinecke committed
2
image: debian:testing-slim
Jait Dixit's avatar
Jait Dixit committed
3

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

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

Martin Reinecke's avatar
Martin Reinecke committed
11
test_python2:
Martin Reinecke's avatar
Martin Reinecke committed
12 13
  stage: test
  script:
Martin Reinecke's avatar
fixes  
Martin Reinecke committed
14 15
    - apt-get update
    - apt-get install -y git libfftw3-dev openmpi-bin libopenmpi-dev python python-pip python-dev python-nose python-numpy python-matplotlib python-future python-mpi4py python-scipy
Martin Reinecke's avatar
Martin Reinecke committed
16 17 18
    - pip install --process-dependency-links parameterized coverage git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git
    - pip install --user .
    - OMP_NUM_THREADS=1 mpiexec --allow-run-as-root -n 2 nosetests -q 2>/dev/null
Martin Reinecke's avatar
Martin Reinecke committed
19 20 21
    - nosetests -q --with-coverage --cover-package=nifty4 --cover-branches --cover-erase
    - >
      coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'
22

Martin Reinecke's avatar
Martin Reinecke committed
23 24 25
test_python3:
  stage: test
  script:
Martin Reinecke's avatar
fixes  
Martin Reinecke committed
26 27
    - apt-get update
    - apt-get install -y git libfftw3-dev openmpi-bin libopenmpi-dev python3 python3-pip python3-dev python3-nose python3-numpy python3-matplotlib python3-future python3-mpi4py python3-scipy
Martin Reinecke's avatar
Martin Reinecke committed
28 29 30 31 32
    - pip3 install --process-dependency-links parameterized git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git
    - pip3 install --user .
    - nosetests3 -q
    - OMP_NUM_THREADS=1 mpiexec --allow-run-as-root -n 2 nosetests3 -q 2>/dev/null

33
pages:
Martin Reinecke's avatar
cleanup  
Martin Reinecke committed
34
  stage: release
35
  script:
Martin Reinecke's avatar
fixes  
Martin Reinecke committed
36
    - apt-get update
Martin Reinecke's avatar
fixes  
Martin Reinecke committed
37
    - apt-get install -y git libfftw3-dev python python-pip python-dev python-numpy python-future python-sphinx python-sphinx-rtd-theme python-numpydoc
Martin Reinecke's avatar
Martin Reinecke committed
38 39 40
    - pip install --user .
    - sh docs/generate.sh
    - mv docs/build/ public/
41 42
  artifacts:
    paths:
43
    - public
Martin Reinecke's avatar
cleanup  
Martin Reinecke committed
44 45
  only:
  - NIFTy_4