Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
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:
- ./scripts/runtox.sh
- coverage erase
- ./scripts/runtox.sh '' --cov=sentry_sdk --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/bash
set -xe

# Usage: sh scripts/runtox.sh py3.7 <pytest-args>
# Runs all environments with substring py3.7 and the given arguments for pytest

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' ',')
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 @@ -77,7 +77,7 @@ basepython =
pypy: pypy

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

[testenv:linters]
commands =
Expand Down