Tell pip to use explicit download cache

This commit is contained in:
Simon Willison 2018-06-21 19:51:10 -07:00
commit b9046332c4
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52

View file

@ -7,6 +7,8 @@ python:
# Executed for 3.5 AND 3.5 as the first "test" stage: # Executed for 3.5 AND 3.5 as the first "test" stage:
script: script:
- pip install -U pip wheel
- pip install --download-cache /home/travis/.cache/pip .
- python setup.py test - python setup.py test
cache: cache:
@ -19,8 +21,7 @@ jobs:
- stage: deploy latest.datasette.io - stage: deploy latest.datasette.io
if: branch = master AND type = push if: branch = master AND type = push
script: script:
- pip install -U pip wheel - pip install --download-cache /home/travis/.cache/pip .
- pip install .
- npm install -g now - npm install -g now
- python tests/fixtures.py fixtures.db fixtures.json - python tests/fixtures.py fixtures.db fixtures.json
- export ALIAS=`echo $TRAVIS_COMMIT | cut -c 1-7` - export ALIAS=`echo $TRAVIS_COMMIT | cut -c 1-7`