1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-13 09:56:30 +00:00

travis: only short-circuit docs-only changes for pull requests

if a branch build is stopped, then codecov will complain about
missing base branch coverage.
This commit is contained in:
Marian Beermann 2017-08-24 16:24:44 +02:00
parent e9b892feb5
commit 920d974b25

View file

@ -35,10 +35,12 @@ matrix:
before_install:
- |
echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(AUTHORS|README\.rst|^(docs)/)' || {
echo "Only docs were updated, stopping build process."
exit
test $TRAVIS_EVENT_TYPE != "pull_request" || {
echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
git diff --name-only $TRAVIS_COMMIT_RANGE | grep --quiet --invert-match --extended-regexp '(AUTHORS|README\.rst|^(docs)/)' || {
echo "Only docs were updated, stopping build process."
exit
}
}
install: