forked from html5lib/html5lib-python
-
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.
Collect PyPy and AppVeyor coverage using tox
Coverage of PyPy was disabled however it works without trouble, albeit a little slow. To allow tox to run tests under coverage, and with arguments passed to coverage, PYTEST_COMMAND can now be used to override the default command used to run the tests. Due to pips inability to deal with multiple requirements for the same package, six==1.9 is forcably installed after the tox environment has been setup.
- Loading branch information
Showing
4 changed files
with
28 additions
and
17 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 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,6 +1,10 @@ | ||
-r requirements.txt | ||
|
||
tox | ||
|
||
flake8<3.0 | ||
|
||
pytest | ||
coverage | ||
pytest-expect>=1.1,<2.0 | ||
mock |
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,21 +1,23 @@ | ||
[tox] | ||
envlist = {py27,py33,py34,py35,py36,pypy}-{base,optional} | ||
envlist = {py27,py33,py34,py35,py36,pypy}-{base,six19,optional} | ||
|
||
[testenv] | ||
deps = | ||
flake8<3.0 | ||
pytest | ||
pytest-expect>=1.1,<2.0 | ||
mock | ||
base: six | ||
base: webencodings | ||
optional: -r{toxinidir}/requirements-optional.txt | ||
-r{toxinidir}/requirements-test.txt | ||
doc: Sphinx | ||
|
||
passenv = | ||
PYTEST_COMMAND | ||
COVERAGE_RUN_OPTIONS | ||
commands = | ||
{envbindir}/py.test {posargs} | ||
six19: pip install six==1.9 | ||
{env:PYTEST_COMMAND:{envbindir}/py.test} {posargs} | ||
flake8 {toxinidir} | ||
|
||
[testenv:doc] | ||
changedir = doc | ||
commands = sphinx-build -b html . _build | ||
|
||
[flake8] | ||
exclude = ./.tox |