.gitlab-ci.yml 1.52 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 11
variables:
  DOCKER_DRIVER: overlay

before_script:
Martin Reinecke's avatar
tweaks  
Martin Reinecke committed
12 13
  - apt-get update
  - sh ci/install_basics.sh
Martin Reinecke's avatar
Martin Reinecke committed
14
  - apt-get install -y git libfftw3-dev openmpi-bin libopenmpi-dev
Jait Dixit's avatar
Jait Dixit committed
15

Martin Reinecke's avatar
Martin Reinecke committed
16
test_python2:
Martin Reinecke's avatar
Martin Reinecke committed
17 18
  stage: test
  script:
Martin Reinecke's avatar
Martin Reinecke committed
19 20 21 22
    - apt-get install -y python  python-pip  python-dev  python-nose  python-numpy  python-matplotlib  python-future  python-mpi4py python-scipy
    - 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
23 24 25
    - nosetests -q --with-coverage --cover-package=nifty4 --cover-branches --cover-erase
    - >
      coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'
26

Martin Reinecke's avatar
Martin Reinecke committed
27 28 29 30 31 32 33 34 35 36 37
test_python3:
  stage: test
  script:
    - apt-get install -y python3 python3-pip python3-dev python3-nose python3-numpy python3-matplotlib python3-future python3-mpi4py python3-scipy
    - 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
    - >
      coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'

38
pages:
Martin Reinecke's avatar
Martin Reinecke committed
39
  stage: release
40
  script:
Martin Reinecke's avatar
Martin Reinecke committed
41 42 43 44
    - pip install --user sphinx sphinx_rtd_theme numpydoc
    - pip install --user .
    - sh docs/generate.sh
    - mv docs/build/ public/
45 46
  artifacts:
    paths:
47
    - public
Martin Reinecke's avatar
Martin Reinecke committed
48 49
#  only:
#  - NIFTy_4