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