From: peusterm Date: Thu, 7 Sep 2017 14:37:15 +0000 (+0200) Subject: Fix: Jenkins worker don't have a TTY. Do not run the test container with "-it". X-Git-Tag: v3.1~10^2 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fvim-emu.git;a=commitdiff_plain;h=5b9096ef3f5f4c9caf56a223cfbddb7e8f445d60 Fix: Jenkins worker don't have a TTY. Do not run the test container with "-it". Signed-off-by: Manuel Peuster --- diff --git a/utils/ci/jenkins_entrypoint.sh b/utils/ci/jenkins_entrypoint.sh index 133f82b..6c5941e 100755 --- a/utils/ci/jenkins_entrypoint.sh +++ b/utils/ci/jenkins_entrypoint.sh @@ -29,12 +29,6 @@ # Script has to be called from "son-emu" root directory, like: sudo ./utils/ci/jenkins_entrypoint.sh export DOCKER_HOST="unix:///var/run/docker.sock" -# don't rely on Debian/Ubuntu Docker engine -#apt-get remove docker-engine -# make sure we start from scratch -#pip uninstall docker-py -#pip uninstall docker - set -e set -x @@ -46,10 +40,10 @@ set -x #apt-get install docker-ce # build the container -docker build -t son-emu-img . +docker build -t test-son-emu-img . # launch the container and trigger the unit tests -docker run --name son-emu -it --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock son-emu-img py.test -v src/emuvim/test/unittests +docker run --name son-emu --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock test-son-emu-img py.test -v src/emuvim/test/unittests # # old way to call the tests directly on the host machine