django-rest-framework/.travis.yml
Jon Dufresne 18180c9fc6 Add pip cache support to the Travis CI configuration
For documentation on the feature, see:

https://docs.travis-ci.com/user/caching/#pip-cache

With packages cached, builds will be slightly faster and help reduce
load on PyPI.
2017-11-03 16:08:34 -07:00

46 lines
818 B
YAML

language: python
cache: pip
python:
- "2.7"
- "3.4"
- "3.5"
sudo: false
env:
- DJANGO=1.10
- DJANGO=1.11
- DJANGO=2.0
- DJANGO=master
matrix:
fast_finish: true
include:
- { python: "3.6", env: DJANGO=master }
- { python: "3.6", env: DJANGO=1.11 }
- { python: "3.6", env: DJANGO=2.0 }
- { python: "2.7", env: TOXENV=lint }
- { python: "2.7", env: TOXENV=docs }
exclude:
- { python: "2.7", env: DJANGO=master }
- { python: "2.7", env: DJANGO=2.0 }
- { python: "3.4", env: DJANGO=master }
allow_failures:
- env: DJANGO=master
- env: DJANGO=2.0
install:
- pip install tox tox-travis
script:
- tox
after_success:
- pip install codecov
- codecov -e TOXENV,DJANGO
notifications:
email: false