mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-29 18:10:59 -04: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.
(cherry picked from commit d2f9e28683)
This commit is contained in:
parent
e065fccf3d
commit
f948cfbe35
1 changed files with 6 additions and 3 deletions
|
|
@ -39,9 +39,12 @@ matrix:
|
|||
|
||||
before_install:
|
||||
- |
|
||||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue