Internal: cancel build with only .md changes (#4547)

This commit is contained in:
Henry Zhu 2016-09-22 17:59:47 -04:00 committed by GitHub
parent 1db8c02d05
commit d7533e899f

View File

@ -5,6 +5,15 @@ language: node_js
cache:
directories:
- 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:
- '6'
- '5'