summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-10-26 23:14:41 +0200
committerVarac <varac@leap.se>2017-10-27 09:37:00 +0200
commitcdb5165e6b3de8fadd27c737db68b87c1522e1f5 (patch)
tree4bdaaa56c580b3f19e859dd72aacbd6702f2bf2f
parent5c90b7f18b7f4a6262566d4c2254fbb05220516b (diff)
[CI] Fix caching of .tox/py27-dev
Resolves: #9058
-rw-r--r--.gitlab-ci.yml16
1 files changed, 6 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ecfedf1d..d4479a06 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,16 +11,17 @@ stages:
variables:
DOCKER_DRIVER: overlay
+# Cache gems in between stages for this pipeline only
+cache:
+ key: "$CI_PIPELINE_ID"
+ paths:
+ - .tox/py27-dev
+
linux_test:
image: 0xacab.org:4567/leap/soledad:latest
stage: test
script:
- tox --recreate -e py27-dev
- artifacts:
- paths:
- - .tox/py27-dev
- name: "bitmask virtualenv ${CI_BUILD_REF}"
- expire_in: 1 week
tags:
- linux
@@ -61,11 +62,6 @@ e2e_tests:
- mkdir -p /root/.config/leap/
- make install_helpers
- make test_e2e
- artifacts:
- paths:
- - .tox/py27-dev
- name: "bitmask virtualenv ${CI_BUILD_REF} (e2e)"
- expire_in: 1 week
tags:
- linux