From 02c99babaa15180b263ac18dc9313b73b9e43b7c Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 27 Sep 2015 18:49:25 +0200 Subject: [PATCH] Use pip 7 caching --- .gitlab-ci.yml | 2 +- .travis.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6901171fb9..cd5d21877c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ tests: - source env/bin/activate - curl https://bootstrap.pypa.io/get-pip.py | python - cd src - - pip3 install -q -r requirements.txt + - XDG_CACHE=/cache pip3 install -q -r requirements.txt - flake8 --ignore=E123,F403,F401,N802,C901,W503 . - isort -c -rc . - python3 manage.py check diff --git a/.travis.yml b/.travis.yml index 15be8cd083..ebf2f4a621 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ sudo: false python: - "3.4" install: + - pip install -U pip wheel - pip install -q -r src/requirements.txt - npm install -g less@2.5.0 before_script: @@ -16,3 +17,4 @@ script: - coverage run -m py.test tests after_success: - coveralls +cache: pip