Internal: cancel build with only .md changes (#4547)
This commit is contained in:
parent
1db8c02d05
commit
d7533e899f
@ -5,6 +5,15 @@ language: node_js
|
|||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
|
before_install:
|
||||||
|
- |
|
||||||
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||||
|
TRAVIS_COMMIT_RANGE="FETCH_HEAD...$TRAVIS_BRANCH"
|
||||||
|
fi
|
||||||
|
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(doc))/' || {
|
||||||
|
echo "Only docs were updated, stopping build process."
|
||||||
|
exit
|
||||||
|
}
|
||||||
node_js:
|
node_js:
|
||||||
- '6'
|
- '6'
|
||||||
- '5'
|
- '5'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user