From a9e6dbb186bfb0e03243f269a9a4dffac11910a6 Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Fri, 18 Mar 2022 12:56:02 +0100 Subject: [PATCH] env activation --- run_tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run_tests.sh b/run_tests.sh index 4e958bc..5f3f1c3 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,8 +1,14 @@ docker build -f Dockerfile_tests -t pyinfra-tests . +source build_venv/bin/activate +python3 -m pip install --upgrade pip +python3 -m pip install docker-compose + docker-compose -remove-orphans up -d + echo "Sleeping for 30 seconds to wait for dependency containers to finish startup..." sleep 30s + docker rm /pyinfra-tests docker run --net=host --name pyinfra-tests pyinfra-tests docker cp pyinfra-tests:/app/service/reports/coverage.xml reports/coverage.xml