summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml7
-rw-r--r--testing/tox.ini1
2 files changed, 6 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6cafdf54..f5a68f1e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,10 +3,13 @@ stages:
- tests
- benchmark
-# Cache tox envs between builds
+# Cache a folder between builds.
+# Tox sets it to be our pip cache.
cache:
+ untracked: true
+ key: soledad-shared-pip-cache
paths:
- - testing/.tox/
+ - testing/.cache/
before_script:
- echo "Running on ${HOST_HOSTNAME:=$(hostname)}"
diff --git a/testing/tox.ini b/testing/tox.ini
index d800d988..0e4b2683 100644
--- a/testing/tox.ini
+++ b/testing/tox.ini
@@ -29,6 +29,7 @@ deps =
setenv =
HOME=/tmp
TERM=xterm
+ XDG_CACHE_HOME=./.cache/
install_command = pip install {opts} {packages}
[testenv:py34]