mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 11:30:12 +03:00
tox/travis: test optionals optionally
This commit is contained in:
parent
a44cb67988
commit
28b449e793
|
@ -21,6 +21,8 @@ matrix:
|
|||
- { 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.0 }
|
||||
- { python: "3.6", env: TOXENV=py36-django20-optionals }
|
||||
- { python: "3.6", env: DJANGO=2.1 }
|
||||
- { python: "2.7", env: TOXENV=lint }
|
||||
- { python: "2.7", env: TOXENV=docs }
|
||||
|
@ -32,6 +34,13 @@ matrix:
|
|||
- tox --installpkg ./dist/djangorestframework-*.whl
|
||||
- tox # test sdist
|
||||
|
||||
- python: "3.6"
|
||||
env: TOXENV=dist-optionals
|
||||
script:
|
||||
- python setup.py bdist_wheel
|
||||
- tox --installpkg ./dist/djangorestframework-*.whl
|
||||
- tox # test sdist
|
||||
|
||||
exclude:
|
||||
- { python: "2.7", env: DJANGO=master }
|
||||
- { python: "2.7", env: DJANGO=2.0 }
|
||||
|
|
6
tox.ini
6
tox.ini
|
@ -27,14 +27,18 @@ deps =
|
|||
django20: Django>=2.0,<2.1
|
||||
django21: Django>=2.1b1,<2.2
|
||||
djangomaster: https://github.com/django/django/archive/master.tar.gz
|
||||
optionals: -rrequirements/requirements-optionals.txt
|
||||
-rrequirements/requirements-testing.txt
|
||||
-rrequirements/requirements-optionals.txt
|
||||
|
||||
[testenv:dist]
|
||||
commands = ./runtests.py --fast {posargs} --no-pkgroot --staticfiles -rw
|
||||
deps =
|
||||
django
|
||||
-rrequirements/requirements-testing.txt
|
||||
|
||||
[testenv:dist-optionals]
|
||||
commands = {[testenv:dist]commands}
|
||||
deps = {[testenv:dist]deps}
|
||||
-rrequirements/requirements-optionals.txt
|
||||
|
||||
[testenv:lint]
|
||||
|
|
Loading…
Reference in New Issue
Block a user