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
|
*.egg-info
|
||||||
nohup.out
|
nohup.out
|
||||||
.coverage
|
.coverage
|
||||||
|
coverage.xml
|
||||||
examples/frameworks/pylonstest/PasteScript*
|
examples/frameworks/pylonstest/PasteScript*
|
||||||
examples/frameworks/pylonstest/pylonstest.egg-info/
|
examples/frameworks/pylonstest/pylonstest.egg-info/
|
||||||
examples/frameworks/django/testing/testdb.sql
|
examples/frameworks/django/testing/testdb.sql
|
||||||
|
|||||||
17
.travis.yml
17
.travis.yml
@ -27,3 +27,20 @@ cache:
|
|||||||
directories:
|
directories:
|
||||||
- .tox
|
- .tox
|
||||||
- $HOME/.cache/pip
|
- $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"
|
||||||
|
|||||||
@ -7,7 +7,7 @@ group = System Environment/Daemons
|
|||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
norecursedirs = examples lib local src
|
norecursedirs = examples lib local src
|
||||||
testpaths = tests/
|
testpaths = tests/
|
||||||
addopts = --assert=plain
|
addopts = --assert=plain --cov=gunicorn --cov-report=xml
|
||||||
|
|
||||||
[wheel]
|
[wheel]
|
||||||
universal = 1
|
universal = 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user