File tree Expand file tree Collapse file tree 5 files changed +19
-31
lines changed Expand file tree Collapse file tree 5 files changed +19
-31
lines changed Original file line number Diff line number Diff line change
1
+ [run]
2
+ source =
3
+ pkg_resources
4
+ setuptools
5
+ omit =
6
+ */_vendor/*
7
+
8
+ [report]
Original file line number Diff line number Diff line change 98
98
python -m
99
99
tox
100
100
--parallel auto
101
- --
102
- --cov
Original file line number Diff line number Diff line change 5
5
fast_finish : true
6
6
include :
7
7
- python : pypy3
8
- env : DISABLE_COVERAGE=1 # Don't run coverage on pypy (too slow).
9
8
- python : 3.5
10
9
- python : 3.6
11
10
- python : 3.7
@@ -15,12 +14,12 @@ jobs:
15
14
env : LANG=C
16
15
- python : 3.8-dev
17
16
- << : *latest_py3
18
- env : TOXENV=docs DISABLE_COVERAGE=1
17
+ env : TOXENV=docs
19
18
allow_failures :
20
19
# suppress failures due to pypa/setuptools#2000
21
20
- python : pypy3
22
21
- << : *latest_py3
23
- env : TOXENV=docs DISABLE_COVERAGE=1
22
+ env : TOXENV=docs
24
23
25
24
cache : pip
26
25
@@ -39,22 +38,8 @@ install:
39
38
40
39
script :
41
40
- export NETWORK_REQUIRED=1
42
- - |
43
- ( # Run testsuite.
44
- if [ -z "$DISABLE_COVERAGE" ]
45
- then
46
- tox -- --cov
47
- else
48
- tox
49
- fi
50
- )
41
+ - tox
51
42
52
43
after_success :
53
- - |
54
- ( # Upload coverage data.
55
- if [ -z "$DISABLE_COVERAGE" ]
56
- then
57
- export TRAVIS_JOB_NAME="${TRAVIS_PYTHON_VERSION} (LANG=$LANG)" CODECOV_ENV=TRAVIS_JOB_NAME
58
- tox -e coverage,codecov
59
- fi
60
- )
44
+ - export TRAVIS_JOB_NAME="${TRAVIS_PYTHON_VERSION} (LANG=$LANG)" CODECOV_ENV=TRAVIS_JOB_NAME
45
+ - tox -e coverage,codecov
Original file line number Diff line number Diff line change 1
1
[pytest]
2
- addopts =--doctest-modules --flake8 --doctest-glob =pkg_resources/api_tests.txt -r sxX
2
+ addopts =--doctest-modules --flake8 --doctest-glob =pkg_resources/api_tests.txt --cov - r sxX
3
3
norecursedirs =dist build *.egg setuptools/extern pkg_resources/extern pkg_resources/tests/data tools .* setuptools/_vendor pkg_resources/_vendor
4
4
doctest_optionflags =ELLIPSIS ALLOW_UNICODE
5
5
filterwarnings =
Original file line number Diff line number Diff line change @@ -23,12 +23,16 @@ setenv =
23
23
# TODO: The passed environment variables came from copying other tox.ini files
24
24
# These should probably be individually annotated to explain what needs them.
25
25
passenv =APPDATA HOMEDRIVE HOMEPATH windir Program* CommonProgram* VS* APPVEYOR APPVEYOR_* CI CODECOV_* TRAVIS TRAVIS_* NETWORK_REQUIRED
26
- commands =pytest -- cov-config ={toxinidir}/tox.ini -- cov-report = {posargs}
26
+ commands = pytest {posargs}
27
27
usedevelop =True
28
28
extras =
29
29
tests
30
30
31
31
32
+ [testenv:pypy{,3}]
33
+ commands = pytest --no-cov {posargs}
34
+
35
+
32
36
[testenv:coverage]
33
37
description =Combine coverage data and create report
34
38
deps =coverage
@@ -53,13 +57,6 @@ changedir = docs
53
57
commands =
54
58
python -m sphinx . {toxinidir}/build/html
55
59
56
- [coverage:run]
57
- source =
58
- pkg_resources
59
- setuptools
60
- omit =
61
- */_vendor/*
62
-
63
60
[testenv:finalize]
64
61
skip_install = True
65
62
deps =
You can’t perform that action at this time.
0 commit comments