8000 fix(build): Merge coverage reports by untitaker · Pull Request #80 · getsentry/sentry-python · GitHub
[go: up one dir, main page]

Skip to content

fix(build): Merge coverage reports #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 25, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(build): Merge coverage reports
Don't overwrite coverage reports with each other
  • Loading branch information
untitaker committed Sep 25, 2018
commit 767a212cd18d7f7c03c90549522930a519740596
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ install:
- sh scripts/download-semaphore.sh

script:
- sh scripts/runtox.sh
- coverage erase
- sh scripts/runtox.sh '' --cov --cov-append --cov-report=
- codecov

notifications:
Expand Down
7 changes: 6 additions & 1 deletion scripts/runtox.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#!/bin/sh

# Usage: sh scripts/runtox.sh py3.7 <pytest-args>
# Runs all environments with substring py3.7 and the given arguments for pytest
set -xe
if [ -z "$1" ]; then
searchstring="$(echo py$TRAVIS_PYTHON_VERSION | sed -e 's/pypypy/pypy/g' -e 's/-dev//g')"
else
searchstring="$1"
fi

exec tox -e $(tox -l | grep $searchstring | tr '\n' ',')
coverage erase
exec tox -e $(tox -l | grep $searchstring | tr '\n' ',') -- "${@:2}"
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ basepython =
pypy: pypy

commands =
py.test {env:TESTPATH} --cov=sentry_sdk {posargs}
py.test {env:TESTPATH} {posargs}

[testenv:linters]
commands =
Expand Down
0