Skip to content

Commit d77f933

Browse files
committed
Use Codecov report flags
Upgrade to Codecov v2.0.6, didn't get released to PyPi.
1 parent 99e04c5 commit d77f933

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
1919
- SEGFAULT_SIGNALS=all
2020
- PYTHONUNBUFFERED=True
21+
- CODECOV_ENV=TRAVIS_PYTHON_VERSION
2122

2223
addons:
2324
apt:
@@ -51,8 +52,9 @@ after_success:
5152
# Uncomment if need to geninterop, ie. py37 final
5253
# - python tools/geninterop/geninterop.py
5354

54-
# Waiting on mono-cov support or SharpCover
55-
- codecov
55+
# Waiting on mono-coverage, SharpCover or xr.Baboon
56+
- coverage xml -i
57+
- codecov --file coverage.xml --flags Setup_Linux
5658

5759
notifications:
5860
email: false

appveyor.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ environment:
99
global:
1010
PYTHONUNBUFFERED: True
1111
PYTHONWARNINGS: 'ignore:::wheel.pep425tags:'
12+
CODECOV_ENV: PYTHON_VERSION, PLATFORM
1213

1314
matrix:
1415
- PYTHON_VERSION: 2.7
@@ -49,8 +50,10 @@ test_script:
4950
- ps: .\ci\appveyor_build_recipe.ps1
5051

5152
on_finish:
52-
# Upload coverage
53-
- codecov
53+
- coverage xml -i
54+
- codecov --file coverage.xml --flags Setup_Windows
55+
- codecov --file py.coverage --flags Python_Tests
56+
- codecov --file cs.coverage --flags Embedded_Tests
5457

5558
artifacts:
5659
- path: dist\*

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ wheel; sys_platform == 'win32'
88
pycparser; sys_platform != 'win32'
99

1010
# Coverage upload
11-
codecov
11+
# codecov v2.0.6 isn't on PyPi
12+
https://github.com/codecov/codecov-python/tarball/v2.0.6

0 commit comments

Comments
 (0)