2012-09-07 16:32:52 +04:00
|
|
|
language: python
|
2017-11-04 02:08:34 +03:00
|
|
|
cache: pip
|
2012-09-07 16:32:52 +04:00
|
|
|
|
2016-01-20 15:53:53 +03:00
|
|
|
python:
|
2017-01-16 16:51:07 +03:00
|
|
|
- "2.7"
|
|
|
|
- "3.4"
|
2016-06-01 17:53:58 +03:00
|
|
|
- "3.5"
|
2016-01-20 15:53:53 +03:00
|
|
|
|
2014-11-18 21:06:08 +03:00
|
|
|
sudo: false
|
|
|
|
|
2012-09-07 16:32:52 +04:00
|
|
|
env:
|
2017-01-16 16:51:07 +03:00
|
|
|
- DJANGO=1.10
|
2017-01-18 11:01:31 +03:00
|
|
|
- DJANGO=1.11
|
2017-09-27 11:29:48 +03:00
|
|
|
- DJANGO=2.0
|
2018-05-23 13:33:15 +03:00
|
|
|
- DJANGO=2.1
|
2017-01-16 16:51:07 +03:00
|
|
|
- DJANGO=master
|
2016-05-25 22:07:21 +03:00
|
|
|
|
2015-04-05 05:07:11 +03:00
|
|
|
matrix:
|
2016-06-01 17:53:58 +03:00
|
|
|
fast_finish: true
|
2017-01-16 16:51:07 +03:00
|
|
|
include:
|
2017-10-21 09:32:47 +03:00
|
|
|
- { python: "3.6", env: DJANGO=master }
|
|
|
|
- { python: "3.6", env: DJANGO=1.11 }
|
|
|
|
- { python: "3.6", env: DJANGO=2.0 }
|
2018-05-23 13:33:15 +03:00
|
|
|
- { python: "3.6", env: DJANGO=2.1 }
|
2017-10-21 09:32:47 +03:00
|
|
|
- { python: "2.7", env: TOXENV=lint }
|
|
|
|
- { python: "2.7", env: TOXENV=docs }
|
2017-12-14 13:48:03 +03:00
|
|
|
|
|
|
|
- python: "3.6"
|
|
|
|
env: TOXENV=dist
|
|
|
|
script:
|
|
|
|
- python setup.py bdist_wheel
|
|
|
|
- tox --installpkg ./dist/djangorestframework-*.whl
|
|
|
|
- tox # test sdist
|
|
|
|
|
2017-01-16 16:51:07 +03:00
|
|
|
exclude:
|
2017-10-21 09:32:47 +03:00
|
|
|
- { python: "2.7", env: DJANGO=master }
|
|
|
|
- { python: "2.7", env: DJANGO=2.0 }
|
2018-05-23 13:33:15 +03:00
|
|
|
- { python: "2.7", env: DJANGO=2.1 }
|
2017-10-21 09:32:47 +03:00
|
|
|
- { python: "3.4", env: DJANGO=master }
|
2018-05-23 13:33:15 +03:00
|
|
|
- { python: "3.4", env: DJANGO=2.1 }
|
2017-01-18 11:01:31 +03:00
|
|
|
|
2016-06-23 16:12:51 +03:00
|
|
|
allow_failures:
|
2017-01-16 16:51:07 +03:00
|
|
|
- env: DJANGO=master
|
2018-05-23 13:33:15 +03:00
|
|
|
- env: DJANGO=2.1
|
2012-09-07 16:32:52 +04:00
|
|
|
|
2014-09-06 04:56:25 +04:00
|
|
|
install:
|
2017-01-16 16:51:07 +03:00
|
|
|
- pip install tox tox-travis
|
2014-09-06 04:56:25 +04:00
|
|
|
|
2012-09-07 16:32:52 +04:00
|
|
|
script:
|
2017-01-16 16:51:07 +03:00
|
|
|
- tox
|
2015-07-30 06:53:57 +03:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- pip install codecov
|
2017-01-16 16:51:07 +03:00
|
|
|
- codecov -e TOXENV,DJANGO
|
2016-06-01 17:53:58 +03:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|