mirror of https://github.com/borgbackup/borg.git
Merge pull request #2967 from ThomasWaldmann/f/travis-stop-1.1
travis: only short-circuit docs-only changes for pull requests
This commit is contained in:
commit
4abbc8639c
|
@ -44,11 +44,13 @@ matrix:
|
|||
|
||||
before_install:
|
||||
- |
|
||||
test $TRAVIS_EVENT_TYPE != "pull_request" || {
|
||||
echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
|
||||
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(AUTHORS|README\.rst|^(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:
|
||||
- git fetch --unshallow --tags
|
||||
|
|
Loading…
Reference in New Issue