mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-04 04:00:18 +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
|
- python: 3.4 # i.e. skip installing 3.5
|
||||||
env: TOXENV=lint
|
env: TOXENV=lint
|
||||||
- python: 3.4
|
- python: 3.4
|
||||||
env: TOXENV=coverage
|
env: TOXENV=coverage34
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install tox
|
- pip install tox
|
||||||
|
@ -28,7 +28,7 @@ script:
|
||||||
- tox
|
- tox
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [[ $TOXENV =~ coverage ]]; then
|
- if [[ $TOXENV =~ coverage34 ]]; then
|
||||||
pip install --quiet python-coveralls;
|
pip install --quiet python-coveralls;
|
||||||
coveralls --ignore-errors;
|
coveralls --ignore-errors;
|
||||||
fi
|
fi
|
||||||
|
|
19
tox.ini
19
tox.ini
|
@ -3,9 +3,12 @@ envlist = py34,py35,py36
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
recreate = True
|
recreate = True
|
||||||
commands = coverage run setup.py test
|
|
||||||
install_command =
|
install_command =
|
||||||
pip install {opts} {packages}
|
pip install {opts} {packages}
|
||||||
|
commands =
|
||||||
|
python setup.py clean_tl
|
||||||
|
python setup.py gen_tl
|
||||||
|
coverage run setup.py test
|
||||||
deps = coverage
|
deps = coverage
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
|
@ -17,6 +20,20 @@ commands =
|
||||||
deps =
|
deps =
|
||||||
coverage
|
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]
|
[testenv:lint]
|
||||||
basepython = python3.4
|
basepython = python3.4
|
||||||
skip_install = true
|
skip_install = true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user