Commit 924a5d98 authored by Philipp Arras's avatar Philipp Arras

Use Docker for tests

parent 0ba1955a
Pipeline #28219 failed with stage
in 28 seconds
image: docker:stable
services:
- docker:dind
variables:
CONTAINER_TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/ift/nifty:$CI_BUILD_REF_NAME
stages:
- build_docker
- test
......@@ -7,9 +13,9 @@ stages:
before_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
variables:
CONTAINER_TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/ift/nifty:$CI_BUILD_REF_NAME
# test_python2_scalar:
# stage: test
......@@ -20,6 +26,7 @@ variables:
# coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'
test_python3_scalar:
image: $CONTAINER_TEST_IMAGE
stage: test
script:
- docker run $CONTAINER_TEST_IMAGE python3 setup.py install --user -f
......@@ -49,11 +56,3 @@ test_python3_scalar:
# only:
# - NIFTy_4
services:
- docker:dind
build_docker_container:
stage: build_docker
script:
- docker build -t $CONTAINER_TEST_IMAGE .
- docker push $CONTAINER_TEST_IMAGE
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