mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 21:24:33 +03:00
c4b068cfd3
* Use tox-venv to reduce warnings in output * Remove .egg-info/ to allow wheel installation tox now invokes pip as a python module instead of through its entry point. "python -m" adds the current directory to the PYTHONPATH, picking up the .egg-info/ metadata directory, tricking pip into thinking that the package is already installed (and thus not installing the wheel). Deleting the metadata directory fixes this.
59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
language: python
|
|
cache: pip
|
|
|
|
python:
|
|
- "2.7"
|
|
- "3.4"
|
|
- "3.5"
|
|
|
|
sudo: false
|
|
|
|
env:
|
|
- DJANGO=1.11
|
|
- DJANGO=2.0
|
|
- DJANGO=2.1
|
|
- 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: "3.6", env: DJANGO=2.1 }
|
|
- { python: "3.6", env: TOXENV=base }
|
|
- { python: "2.7", env: TOXENV=lint }
|
|
- { python: "2.7", env: TOXENV=docs }
|
|
|
|
- python: "3.6"
|
|
env: TOXENV=dist
|
|
script:
|
|
- python setup.py bdist_wheel
|
|
- rm -r djangorestframework.egg-info # see #6139
|
|
- tox --installpkg ./dist/djangorestframework-*.whl
|
|
- tox # test sdist
|
|
|
|
exclude:
|
|
- { python: "2.7", env: DJANGO=master }
|
|
- { python: "2.7", env: DJANGO=2.0 }
|
|
- { python: "2.7", env: DJANGO=2.1 }
|
|
- { python: "3.4", env: DJANGO=master }
|
|
- { python: "3.4", env: DJANGO=2.1 }
|
|
|
|
allow_failures:
|
|
- env: DJANGO=master
|
|
- env: DJANGO=2.1
|
|
|
|
install:
|
|
- pip install tox tox-venv tox-travis
|
|
|
|
script:
|
|
- tox
|
|
|
|
after_success:
|
|
- pip install codecov
|
|
- codecov -e TOXENV,DJANGO
|
|
|
|
notifications:
|
|
email: false
|