summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-11-22 14:04:17 +0100
committerKali Kaneko <kali@leap.se>2017-11-23 16:14:35 +0100
commitcaaf3b6f12ba021d75498909447d4a99468c9cdd (patch)
treeca9db9bec9a2ff88d27bff05cd63e3c80a7c7044 /.gitlab-ci.yml
parent4bd7eb76924ce3c89c624736ecf31f5f9129899a (diff)
[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.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 7 insertions, 0 deletions
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