mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 01:37:20 +00:00
Merge pull request #2962 from enkore/f/travis-stop
travis: only short-circuit docs-only changes for pull requests
This commit is contained in:
commit
cab9c0533f
1 changed files with 6 additions and 4 deletions
10
.travis.yml
10
.travis.yml
|
@ -35,10 +35,12 @@ matrix:
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- |
|
- |
|
||||||
echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
|
test $TRAVIS_EVENT_TYPE != "pull_request" || {
|
||||||
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(AUTHORS|README\.rst|^(docs)/)' || {
|
echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
|
||||||
echo "Only docs were updated, stopping build process."
|
git diff --name-only $TRAVIS_COMMIT_RANGE | grep --quiet --invert-match --extended-regexp '(AUTHORS|README\.rst|^(docs)/)' || {
|
||||||
exit
|
echo "Only docs were updated, stopping build process."
|
||||||
|
exit
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
Loading…
Reference in a new issue