File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ environment:
10
10
- TOXENV : " coverage"
11
11
# note: please use "tox --listenvs" to populate the build matrix below
12
12
- TOXENV : " linting"
13
+ PYTEST_NO_COVERAGE : " 1"
13
14
- TOXENV : " py27"
14
15
- TOXENV : " py34"
15
16
- TOXENV : " py35"
@@ -29,7 +30,9 @@ environment:
29
30
- TOXENV : " py27-nobyte"
30
31
- TOXENV : " doctesting"
31
32
- TOXENV : " py36-freeze"
33
+ PYTEST_NO_COVERAGE : " 1"
32
34
- TOXENV : " docs"
35
+ PYTEST_NO_COVERAGE : " 1"
33
36
34
37
install :
35
38
- echo Installed Pythons
@@ -41,9 +44,25 @@ install:
41
44
42
45
build : false # Not a C# project, build stuff at the test step instead.
43
46
47
+ before_test :
48
+ - |
49
+ if not defined PYTEST_NO_COVERAGE (
50
+ set "_PYTEST_TOX_COVERAGE_RUN=coverage run --source {envsitepackagesdir}/_pytest/,%CD%/testing -m"
51
+ set "_PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess"
52
+ )
53
+
44
54
test_script :
45
55
- C:\Python36\python -m tox
46
56
57
+ on_success :
58
+ - |
59
+ if not defined PYTEST_NO_COVERAGE (
60
+ C:\Python36\Scripts\pip install codecov
61
+ C:\Python36\Scripts\coverage combine
62
+ C:\Python36\Scripts\coverage report -m
63
+ C:\Python36\Scripts\codecov
64
+ )
65
+
47
66
cache :
48
67
- ' %LOCALAPPDATA%\pip\cache'
49
68
- ' %USERPROFILE%\.cache\pre-commit'
You can’t perform that action at this time.
0 commit comments