mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #1456 from aconrad/couverture-io
submit coverage report to couverture.io
This commit is contained in:
commit
34a624ff59
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,6 +9,7 @@ setuptools-*
|
||||
*.egg-info
|
||||
nohup.out
|
||||
.coverage
|
||||
coverage.xml
|
||||
examples/frameworks/pylonstest/PasteScript*
|
||||
examples/frameworks/pylonstest/pylonstest.egg-info/
|
||||
examples/frameworks/django/testing/testdb.sql
|
||||
|
||||
17
.travis.yml
17
.travis.yml
@ -27,3 +27,20 @@ cache:
|
||||
directories:
|
||||
- .tox
|
||||
- $HOME/.cache/pip
|
||||
after_script:
|
||||
- |
|
||||
if [ ! -f coverage.xml ]; then
|
||||
echo "No coverage.xml found; skipping sending coverage to couverture.io"
|
||||
return
|
||||
fi
|
||||
if [ $TRAVIS_PULL_REQUEST != false ]; then
|
||||
REAL_COMMIT=$(git log -n 1 $TRAVIS_COMMIT_RANGE --format="%H")
|
||||
PR_NUM=$TRAVIS_PULL_REQUEST
|
||||
else
|
||||
REAL_COMMIT=$TRAVIS_COMMIT
|
||||
fi
|
||||
curl \
|
||||
--verbose \
|
||||
--header "X-Couverture-Pull-Request: $PR_NUM" \
|
||||
--data-binary @coverage.xml \
|
||||
"https://app.couverture.io/coverage/github/benoitc/gunicorn/$REAL_COMMIT/$TOXENV"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user