Skip to content

Commit 15ecef4

Browse files
committed
coverage + python-coveralls -> coveralls
This seems to improve how we work with the latest pip.
1 parent 4f92be3 commit 15ecef4

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020

2121
tests_require = [
2222
"asyncio_extras",
23-
# TODO Remove the condition on coverage once
24-
# https://github.com/z4r/python-coveralls/issues/73 is fixed
25-
"coverage<5",
2623
"flake8",
2724
"flake8_docstrings",
2825
"mock",

tox.ini

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,56 +12,50 @@ passenv =
1212
NO_TESTS_OVER_WIRE
1313
NO_CREDENTIALS_TESTS
1414
TASKCLUSTER_PROXY_URL
15-
TRAVIS
16-
TRAVIS_JOB_ID
17-
TRAVIS_BRANCH
1815

1916
deps =
2017
aiohttp>=3
2118
asyncio_extras
22-
# TODO Remove the condition on coverage once
23-
# https://github.com/z4r/python-coveralls/issues/73 is fixed
24-
coverage<5
19+
coveralls
2520
flake8
2621
pydocstyle==3.0.0
2722
flake8_docstrings
2823
mock
2924
pytest
3025
# https://github.com/pytest-dev/pytest-asyncio/issues/209
3126
pytest-asyncio<0.15
32-
pytest-cov
3327
pytest-mock
3428
pytest-random-order
3529
virtualenv
3630

3731
usedevelop = true
3832

3933
commands=
40-
{posargs:py.test --cov-config=tox.ini --cov-append --cov=scriptworker --cov-report term-missing tests}
34+
{posargs:coverage run --source=src/scriptworker --branch --rcfile tox.ini -m pytest tests}
4135

4236
[testenv:clean]
4337
skip_install = true
4438
commands = coverage erase
39+
deps=
40+
coveralls
4541
depends =
4642

4743
[testenv:report]
4844
skip_install = true
4945
commands = coverage report -m
5046
depends = py38
47+
deps=
48+
coveralls
5149
parallel_show_output = true
5250

5351
[testenv:coveralls]
5452
passenv =
5553
COVERALLS_REPO_TOKEN
56-
TRAVIS_JOB_ID
5754
COVERALLS_SERVICE_NAME
5855
deps=
59-
python-coveralls
60-
# TODO Remove the condition on coverage once
61-
# https://github.com/z4r/python-coveralls/issues/73 is fixed
62-
coverage<5
63-
commands=
6456
coveralls
57+
commands=
58+
coveralls --service=taskcluster
6559

6660
[testenv:py37-cot]
6761
commands=

0 commit comments

Comments
 (0)