Generate tl before tests; fix coverage.

This commit is contained in:
Andrei Fokau 2017-10-28 11:00:35 +00:00
parent 826643c699
commit 55846c7ac9
No known key found for this signature in database
GPG Key ID: F2BC8AF1CE23A98E
2 changed files with 20 additions and 3 deletions

View File

@ -19,7 +19,7 @@ matrix:
- python: 3.4 # i.e. skip installing 3.5
env: TOXENV=lint
- python: 3.4
env: TOXENV=coverage
env: TOXENV=coverage34
install:
- pip install tox
@ -28,7 +28,7 @@ script:
- tox
after_success:
- if [[ $TOXENV =~ coverage ]]; then
- if [[ $TOXENV =~ coverage34 ]]; then
pip install --quiet python-coveralls;
coveralls --ignore-errors;
fi

19
tox.ini
View File

@ -3,9 +3,12 @@ envlist = py34,py35,py36
[testenv]
recreate = True
commands = coverage run setup.py test
install_command =
pip install {opts} {packages}
commands =
python setup.py clean_tl
python setup.py gen_tl
coverage run setup.py test
deps = coverage
[testenv:coverage]
@ -17,6 +20,20 @@ commands =
deps =
coverage
[testenv:coverage34]
basepython = python3.4
install_command =
pip install {opts} {packages}
ignore_errors = True
commands =
python setup.py clean_tl
python setup.py gen_tl
coverage run setup.py test
coverage combine
coverage report
deps =
coverage
[testenv:lint]
basepython = python3.4
skip_install = true