Don't build on *.md change [skip ci]

This commit is contained in:
Henry Zhu 2016-09-23 00:50:36 -04:00 committed by GitHub
parent 6ce192d883
commit a1c0ef220a

View File

@ -1,6 +1,14 @@
sudo: false
language: node_js
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$)|(^(ast))/' || {
echo "Only docs were updated, stopping build process."
exit
}
node_js:
- "6"
- "5"