From caaf3b6f12ba021d75498909447d4a99468c9cdd Mon Sep 17 00:00:00 2001 From: Varac Date: Wed, 22 Nov 2017 14:04:17 +0100 Subject: [test] Install tox venv in every tox job In order to run tests using tox locally with gitlab-runner we need to run `tox -e py27-dev --notest` before using the venv. --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae6f56c0..4d56e8d7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,6 +21,9 @@ linux_test: image: 0xacab.org:4567/leap/soledad:latest stage: test script: + # In this first job, recreate the tox venv from scratch + # on start of every pipeline + - dpkg -l tox > /dev/null || apt-get -y --no-install-recommends install tox - tox --recreate -e py27-dev tags: - linux @@ -57,6 +60,8 @@ e2e_tests: dependencies: - linux_test script: + - dpkg -l tox > /dev/null || apt-get -y --no-install-recommends install tox + - tox -e py27-dev --notest - source .tox/py27-dev/bin/activate - make dev-latest-backend - mkdir -p /root/.config/leap/ @@ -71,6 +76,8 @@ functional_tests: dependencies: - e2e_tests before_script: + - dpkg -l tox > /dev/null || apt-get -y --no-install-recommends install tox + - tox -e py27-dev --notest - source .tox/py27-dev/bin/activate - make dev-latest-all - make test_functional_setup -- cgit v1.2.3