Merge pull request #2000 from RReverser/stop-travis-on-docs

Cancelling Travis build on commits with docs updates only.
This commit is contained in:
Paul O’Shannessy
2014-08-08 13:25:23 -07:00
+9
View File
@@ -5,6 +5,15 @@ 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$)|(^(docs|examples))/' || {
echo "Only docs were updated, stopping build process."
exit
}
script:
- |
grunt $TEST_TYPE