8000 fix(build): Merge coverage reports (#80) · etherscan-io/sentry-python@c9042c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit c9042c0

Browse files
authored
fix(build): Merge coverage reports (getsentry#80)
* fix(build): Merge coverage reports Don't overwrite coverage reports with each other * fix: Remove double-erase * fix: typo
1 parent 3c438c6 commit c9042c0

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ install:
4646
- sh scripts/download-semaphore.sh
4747

4848
script:
49-
- ./scripts/runtox.sh
49+
- coverage erase
50+
- ./scripts/runtox.sh '' --cov=sentry_sdk --cov-append --cov-report=
5051
- codecov
5152

5253
notifications:

scripts/runtox.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
#!/bin/bash
2+
set -xe
3+
4+
# Usage: sh scripts/runtox.sh py3.7 <pytest-args>
5+
# Runs all environments with substring py3.7 and the given arguments for pytest
6+
27
if [ -z "$1" ]; then
38
searchstring="$(echo py$TRAVIS_PYTHON_VERSION | sed -e 's/pypypy/pypy/g' -e 's/-dev//g' 8000 )"
49
else
510
searchstring="$1"
611
fi
712

8-
exec tox -e $(tox -l | grep $searchstring | tr '\n' ',')
13+
exec tox -e $(tox -l | grep $searchstring | tr '\n' ',') -- "${@:2}"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ basepython =
7777
pypy: pypy
7878

7979
commands =
80-
py.test {env:TESTPATH} --cov=sentry_sdk {posargs}
80+
py.test {env:TESTPATH} {posargs}
8181

8282
[testenv:linters]
8383
commands =

0 commit comments

Comments
 (0)
0