From 517f13ebc00aa1c39e378ee6f4d400339fa0d3a1 Mon Sep 17 00:00:00 2001 From: Krzysztof Jamrog Date: Mon, 23 Jul 2018 11:37:58 +0200 Subject: [PATCH] Python tests changes --- .gitlab-ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 010bb7f0742..c1cc810118e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -538,7 +538,7 @@ pyxrootd_dockerimage: script: - "" variables: - TO: gitlab-registry.cern.ch/dss/xrootd + TO: gitlab-registry.cern.ch/dss/pyxrootd DOCKER_FILE: xrootd-docker/Dockerfile-python.ci dependencies: - xrootd_docker_get @@ -549,16 +549,16 @@ pyxrootd_dockerimage: pyxrootd_docker_test: stage: test script: - - docker pull gitlab-registry.cern.ch/dss/xrootd - - sudo ./xrootd-docker/start.sh -i gitlab-registry.cern.ch/dss/xrootd - - docker exec metaman sh -c "head -c 1000000 /dev/urandom > /tmp/smallfile" - - docker exec metaman sh -c "head -c 1000000 /dev/urandom > /tmp/smallcopy" - - docker exec metaman sh -c "head -c 100000000 /dev/urandom > /tmp/bigfile" - - docker exec metaman sh -c "head -c 100000000 /dev/urandom > /tmp/bigcopy" - - docker exec metaman sh -c "cd xrootd/bindings/python && pytest" + - docker pull gitlab-registry.cern.ch/dss/pyxrootd + - sudo docker run -i gitlab-registry.cern.ch/dss/pyxrootd --name pyxrootd-container + - docker exec pyxrootd-container sh -c "head -c 1000000 /dev/urandom > /tmp/smallfile" + - docker exec pyxrootd-container sh -c "head -c 1000000 /dev/urandom > /tmp/smallcopy" + - docker exec pyxrootd-container sh -c "head -c 100000000 /dev/urandom > /tmp/bigfile" + - docker exec pyxrootd-container sh -c "head -c 100000000 /dev/urandom > /tmp/bigcopy" + - docker exec pyxrootd-container sh -c "cd xrootd/bindings/python && pytest" + - docker rm -f metaman + - docker rmi $(docker images -f "dangling=true" -q) - after_script: - - sudo ./xrootd-docker/clean.sh tags: - xrootd-shell dependencies: