Cache pip wheels between runs in Travis, refs #323

This commit is contained in:
Simon Willison 2018-06-21 16:57:49 -07:00
commit 749b6f0d74
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52

View file

@ -9,12 +9,17 @@ python:
script: script:
- python setup.py test - python setup.py test
cache:
directories:
- $HOME/.cache/pip
# This defines further stages that execute after the tests # This defines further stages that execute after the tests
jobs: jobs:
include: include:
- 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 . - 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