Skip to content
Snippets Groups Projects

Add docker testing framework

Merged Philipp Arras requested to merge dockerIntegration into NIFTy_4
Files
2
+ 23
18
#image: ubuntu:artful
image: parras/nifty:latest
image: debian:testing-slim
stages:
stages:
- test
- test
@@ -8,35 +7,41 @@ stages:
@@ -8,35 +7,41 @@ stages:
variables:
variables:
DOCKER_DRIVER: overlay
DOCKER_DRIVER: overlay
test_python2:
test_python2_scalar:
stage: test
stage: test
script:
script:
- apt-get update > /dev/null
- python setup.py install --user -f
- 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 > /dev/null
- pip install --process-dependency-links parameterized coverage git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git > /dev/null
- pip install --user .
- OMP_NUM_THREADS=1 mpiexec --allow-run-as-root -n 2 nosetests -q 2>/dev/null
- nosetests -q --with-coverage --cover-package=nifty4 --cover-branches --cover-erase
- nosetests -q --with-coverage --cover-package=nifty4 --cover-branches --cover-erase
- >
- >
coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'
coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'
test_python3:
test_python3_scalar:
stage: test
stage: test
script:
script:
- apt-get update > /dev/null
- python3 setup.py install --user -f
- 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 > /dev/null
- pip3 install --process-dependency-links parameterized git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git > /dev/null
- pip3 install --user .
- nosetests3 -q
- nosetests3 -q
- OMP_NUM_THREADS=1 mpiexec --allow-run-as-root -n 2 nosetests3 -q 2>/dev/null
 
test_python2_mpi:
 
stage: test
 
script:
 
- python setup.py install --user -f
 
- OMP_NUM_THREADS=1 mpiexec -n 2 nosetests -q 2> /dev/null
 
only:
 
- NIFTy_4
 
 
test_python3_mpi:
 
stage: test
 
script:
 
- python3 setup.py install --user -f
 
- OMP_NUM_THREADS=1 mpiexec -n 2 nosetests3 -q 2> /dev/null
 
only:
 
- NIFTy_4
pages:
pages:
stage: release
stage: release
script:
script:
- apt-get update > /dev/null
- python setup.py install --user -f
- apt-get install -y git libfftw3-dev python python-pip python-dev python-numpy python-future python-sphinx python-sphinx-rtd-theme python-numpydoc > /dev/null
- sh docs/generate.sh
- pip install --user .
- sh docs/generate.sh > /dev/null
- mv docs/build/ public/
- mv docs/build/ public/
artifacts:
artifacts:
paths:
paths:
Loading