File tree Expand file tree Collapse file tree 4 files changed +22
-14
lines changed Expand file tree Collapse file tree 4 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ environment:
7
7
8
8
matrix :
9
9
# coveralls is not in the default env list
10
- - TOXENV : " coveralls "
10
+ - TOXENV : " coverage "
11
11
# note: please use "tox --listenvs" to populate the build matrix below
12
12
- TOXENV : " linting"
13
13
- TOXENV : " py27"
@@ -42,7 +42,7 @@ install:
42
42
build : false # Not a C# project, build stuff at the test step instead.
43
43
44
44
test_script :
45
- - call scripts\call- tox.bat
45
+ - C:\Python36\python -m tox
46
46
47
47
cache :
48
48
- ' %LOCALAPPDATA%\pip\cache'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ """
2
+ Calls "coveralls" to report code coverage to coveralls.io if we have COVERALLS_REPO_TOKEN defined in the environment,
3
+ otherwise skip it.
4
+
5
+ This script is needed because "coveralls" without a token defined fails, and we want to execute the entire
6
+ workflow even on PRs to detect errors earlier rather than only on master when COVERALLS_REPO_TOKEN is actually
7
+ defined.
8
+ """
9
+
10
+ import os
11
+ import subprocess
12
+
13
+ if os .environ .get ("COVERALLS_REPO_TOKEN" ):
14
+ subprocess .check_call (["coveralls" ])
15
+ else :
16
+ print ("Skipping coveralls run because COVERALLS_REPO_TOKEN is not defined" )
Original file line number Diff line number Diff line change @@ -178,19 +178,19 @@ commands =
178
178
{envpython} tox_run.py
179
179
180
180
181
- [testenv:coveralls ]
181
+ [testenv:coverage ]
182
182
passenv = CI TRAVIS TRAVIS_* COVERALLS_REPO_TOKEN
183
183
usedevelop = True
184
- changedir = .
185
184
deps =
186
185
{[testenv]deps}
187
186
coveralls
188
187
codecov
189
188
commands =
190
- coverage run -m pytest testing
189
+ coverage run -m pytest testing/test_config.py
190
+ coverage combine
191
191
coverage report -m
192
- coveralls
193
192
codecov
193
+ python scripts/maybe-coveralls.py
194
194
195
195
[testenv:release]
196
196
decription = do a release, required posarg of the version number
You can’t perform that action at this time.
0 commit comments