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