mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 03:30:09 +03:00
Generate tl before tests; fix coverage.
This commit is contained in:
parent
826643c699
commit
55846c7ac9
|
@ -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
19
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user