Skip to content
Snippets Groups Projects

Ci experiments

Merged Philipp Arras requested to merge ci_experiments into NIFTy_4
Files
2
+ 16
3
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
Loading