From e936fb70deeb447573fd6fb0f893b8679928012a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Sat, 6 Oct 2018 12:11:08 +0200 Subject: [PATCH] Try caching pip packages --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a7ff218..5235580 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,13 +3,16 @@ image: python stages: - test +variables: + PIP_CACHE_DIR: "$CI_PROJECT_DIR/vendor/pip" + cache: paths: - - vendor/apt + - vendor - .tox before_script: - - mkdir -p vendor/apt + - mkdir -p vendor/{apt,pip} # http://www.python-ldap.org/en/latest/installing.html - apt-get update -q && apt-get -o dir::cache::archives="vendor/apt" install -yqq build-essential python2.7-dev python3-dev libldap2-dev libsasl2-dev - pip install tox