mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
parent
f12ef22281
commit
34527aa3ba
17
.travis.yml
17
.travis.yml
@ -28,20 +28,3 @@ 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"
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user