diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..78fb894c0 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,9 @@ +[run] +branch = True +source = rinoh + +[paths] +source = + src/rinoh + .tox/*/lib/python*/site-packages/rinoh + .tox/pypy*/site-packages/rinoh diff --git a/.travis.yml b/.travis.yml index 06a95eecd..b729fcf91 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,6 +52,9 @@ script: - function installpkg { [[ $DIST == "wheel" ]] && echo "--installpkg ./dist/rinohtype-*.whl"; } - $(timeout) tox -v $(installpkg) +after_success: + - bash <(curl -s https://codecov.io/bash) + notifications: webhooks: urls: diff --git a/run_tests.sh b/run_tests.sh index c5955e038..369ebf30a 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -6,7 +6,7 @@ set -e # exit as soon as one command returns a non-zero exit code if [[ $WITH_COVERAGE -eq 1 ]]; then - COVERAGE_ARGS="--cov=rinoh --cov-report=" + COVERAGE_ARGS="--cov=rinoh" else COVERAGE_ARGS= fi