forked from marshmallow-code/marshmallow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use tox for running tests in CI and running dev commands
...for better parity between local dev and Travis. This also simplifies setting up a local dev environment. Implements the proposal in marshmallow-code#1020 (comment) Close marshmallow-code#1020
- Loading branch information
Showing
7 changed files
with
87 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,38 @@ | ||
[tox] | ||
envlist=py26,py27,py34,py35,pypy | ||
envlist = lint,py26,py27,py34,py35,pypy,docs | ||
|
||
[testenv] | ||
deps= | ||
-rdev-requirements.txt | ||
commands= | ||
invoke test | ||
extras = tests,reco | ||
commands = pytest {posargs} | ||
|
||
[testenv:lint] | ||
extras = lint | ||
commands = flake8 . | ||
|
||
[testenv:py26] | ||
commands = pytest --ignore=tests/test_py3/ {posargs} | ||
|
||
[testenv:pypy] | ||
commands = pytest --ignore=tests/test_py3/ {posargs} | ||
|
||
[testenv:py27] | ||
commands = pytest --ignore=tests/test_py3/ {posargs} | ||
|
||
[testenv:docs] | ||
deps = -rdocs/requirements.txt | ||
extras = | ||
commands = sphinx-build docs/ docs/_build {posargs} | ||
|
||
; Below tasks are for development only (not run in CI) | ||
|
||
[testenv:watch-docs] | ||
deps = | ||
-rdocs/requirements.txt | ||
sphinx-autobuild | ||
extras = | ||
commands = sphinx-autobuild --open-browser docs/ docs/_build {posargs} -z marshmallow | ||
|
||
[testenv:watch-readme] | ||
deps = restview | ||
skip_install = true | ||
commands = restview README.rst |