.gitlab-ci.yml 1.12 KB
Newer Older
Jait Dixit's avatar
Jait Dixit committed
1 2 3 4 5 6 7 8 9 10
image: ubuntu:latest

stages:
  - test

variables:
  DOCKER_DRIVER: overlay

before_script:
  - apt-get update
Theo Steininger's avatar
Theo Steininger committed
11
  - chmod +x ci/*.sh
12 13
  - ci/install_basics.sh
  - pip install --upgrade -r ci/requirements.txt
Martin Reinecke's avatar
Martin Reinecke committed
14
  - pip3 install --upgrade -r ci/requirements.txt
Theo Steininger's avatar
Theo Steininger committed
15

Jait Dixit's avatar
Jait Dixit committed
16

17
test_min:
Martin Reinecke's avatar
Martin Reinecke committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
  stage: test
  script:
    - nosetests -vv
    - nosetests3 -vv

test_mpi:
  stage: test
  script:
    - ci/install_pyHealpix.sh
    - ci/install_mpi4py.sh
    - nosetests -vv
    - nosetests3 -vv

test_mpi_fftw:
  stage: test
  script:
    - ci/install_pyHealpix.sh
    - ci/install_mpi4py.sh
    - ci/install_pyfftw.sh
    - nosetests -vv
    - nosetests3 -vv

test_mpi_fftw_hdf5:
41 42
  stage: test
  script:
Martin Reinecke's avatar
Martin Reinecke committed
43
    - ci/install_pyHealpix.sh
Martin Reinecke's avatar
Martin Reinecke committed
44 45 46 47 48 49 50
    - ci/install_mpi4py.sh
    - ci/install_pyfftw.sh
    - ci/install_h5py.sh
    - mpiexec --allow-run-as-root -n 2 nosetests -x
    - mpiexec --allow-run-as-root -n 2 nosetests3 -x
    - mpiexec --allow-run-as-root -n 4 nosetests -x
    - mpiexec --allow-run-as-root -n 4 nosetests3 -x
Theo Steininger's avatar
Theo Steininger committed
51
    - nosetests -x --with-coverage --cover-package=nifty --cover-branches
Jait Dixit's avatar
Jait Dixit committed
52 53
    - >
      coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'