Try caching pip packages
This commit is contained in:
parent
509a1bbd96
commit
e936fb70de
1 changed files with 5 additions and 2 deletions
|
@ -3,13 +3,16 @@ image: python
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
|
||||||
|
variables:
|
||||||
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/vendor/pip"
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- vendor/apt
|
- vendor
|
||||||
- .tox
|
- .tox
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir -p vendor/apt
|
- mkdir -p vendor/{apt,pip}
|
||||||
# http://www.python-ldap.org/en/latest/installing.html
|
# 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
|
- 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
|
- pip install tox
|
||||||
|
|
Loading…
Reference in a new issue