-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,58 @@ | ||
[tox] | ||
envlist = | ||
py27,py34,py35,cover | ||
{py27,py34,py35,py36}-unit | ||
{py27,py36}-system | ||
This comment has been minimized.
Sorry, something went wrong.
dhermes
|
||
lint | ||
cover | ||
|
||
[testing] | ||
localdeps = | ||
pip install --quiet --upgrade {toxinidir}/../core | ||
deps = | ||
{toxinidir}/../core | ||
mock | ||
pytest | ||
covercmd = | ||
py.test --quiet \ | ||
--cov=google.cloud.language \ | ||
--cov=unit_tests \ | ||
--cov-config {toxinidir}/.coveragerc \ | ||
unit_tests | ||
|
||
[testenv] | ||
commands = | ||
{[testing]localdeps} | ||
py.test --quiet {posargs} unit_tests | ||
basepython = | ||
py27: python2.7 | ||
py34: python3.4 | ||
py35: python3.5 | ||
py36: python3.6 | ||
|
||
deps = | ||
{[testing]deps} | ||
mock | ||
pytest | ||
pytest-cov | ||
{toxinidir}/../core | ||
This comment has been minimized.
Sorry, something went wrong. |
||
system: {toxinidir}/../storage | ||
usedevelop = True | ||
This comment has been minimized.
Sorry, something went wrong.
dhermes
|
||
|
||
commands = | ||
unit: py.test --quiet \ | ||
unit: --cov=google.cloud.language --cov tests.unit \ | ||
unit: --cov-config {toxinidir}/.coveragerc \ | ||
unit: --cov-append --cov-report= --cov-fail-under=97 \ | ||
unit: tests/unit | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
system: py.test --quiet tests/system.py | ||
|
||
passenv = | ||
CI_* | ||
CIRCLE* | ||
GOOGLE_* | ||
TRAVIS* | ||
|
||
|
||
[testenv:cover] | ||
basepython = | ||
python2.7 | ||
basepython = python3.6 | ||
deps = | ||
coverage | ||
pytest-cov | ||
commands = | ||
{[testing]localdeps} | ||
{[testing]covercmd} | ||
coverage report --show-missing --fail-under=100 | ||
coverage erase | ||
|
||
|
||
[testenv:lint] | ||
basepython = python3.5 | ||
deps = | ||
{[testing]deps} | ||
coverage | ||
pytest-cov | ||
pycodestyle | ||
pylint | ||
changedir={toxinidir}/../ | ||
usedevelop = False | ||
commands = | ||
pycodestyle language/ | ||
pylint google.cloud.language |
This is actually inferior to upgrading both at once (
pip
reasons)