Commit ca2ceecf authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'ci_experiments' into 'NIFTy_4'

Ci experiments

See merge request ift/NIFTy!250
parents 44bb284b 48334540
Pipeline #28273 passed with stages
in 3 minutes and 30 seconds
image: parras/nifty:latest
image: docker:stable
variables:
CONTAINER_TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/ift/nifty:$CI_BUILD_REF_NAME
stages:
- build_docker
- test
- release
variables:
DOCKER_DRIVER: overlay
build_docker:
stage: build_docker
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de
- docker build -t $CONTAINER_TEST_IMAGE .
- docker push $CONTAINER_TEST_IMAGE
test_python2_scalar:
image: $CONTAINER_TEST_IMAGE
stage: test
script:
- python setup.py install --user -f
......@@ -16,24 +25,28 @@ test_python2_scalar:
coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'
test_python3_scalar:
image: $CONTAINER_TEST_IMAGE
stage: test
script:
- python3 setup.py install --user -f
- nosetests3 -q
test_python2_mpi:
image: $CONTAINER_TEST_IMAGE
stage: test
script:
- python setup.py install --user -f
- OMP_NUM_THREADS=1 mpiexec -n 2 nosetests -q 2> /dev/null
test_python3_mpi:
image: $CONTAINER_TEST_IMAGE
stage: test
script:
- python3 setup.py install --user -f
- OMP_NUM_THREADS=1 mpiexec -n 2 nosetests3 -q 2> /dev/null
pages:
image: $CONTAINER_TEST_IMAGE
stage: release
script:
- python setup.py install --user -f
......
......@@ -2,14 +2,28 @@ FROM debian:testing-slim
RUN apt-get update
# Debian package installations
RUN apt-get install -y git libfftw3-dev openmpi-bin libopenmpi-dev python python-pip python-dev python-nose python-matplotlib python-future python-mpi4py python-scipy
RUN apt-get install -y python3 python3-pip python3-dev python3-nose python3-matplotlib python3-future python3-mpi4py python3-scipy
# Needed for gitlab tests
RUN apt-get install -y git
# Packages needed for NIFTy
RUN apt-get install -y libfftw3-dev
RUN apt-get install -y python python-pip python-dev python-future python-scipy
RUN apt-get install -y python3 python3-pip python3-dev python3-future python3-scipy
RUN pip install pyfftw
RUN pip3 install pyfftw
# Optional NIFTy dependencies
RUN apt-get install -y openmpi-bin libopenmpi-dev python-mpi4py python3-mpi4py
RUN pip install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git
RUN pip3 install git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git
# Documentation build dependencies
RUN apt-get install -y python-sphinx python-sphinx-rtd-theme python-numpydoc
# Python module installations
RUN pip install parameterized coverage pyfftw git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git
RUN pip3 install parameterized coverage pyfftw git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git
# Testing dependencies
RUN apt-get install -y python-nose python-parameterized
RUN apt-get install -y python3-nose python3-parameterized
RUN pip install coverage
# Create user (openmpi does not like to be run as root)
RUN useradd -ms /bin/bash testinguser
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment