Improved travis build

This commit is contained in:
Syrus Akbary 2015-12-03 19:08:06 -08:00
parent 53de24b705
commit 256a94bc81

View File

@ -14,8 +14,9 @@ cache:
- $HOME/docs/node_modules - $HOME/docs/node_modules
before_install: before_install:
- | - |
if [ "$TEST_TYPE" != build_website ] && \ git_diff=$(git diff --name-only $TRAVIS_COMMIT_RANGE)
! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs))/' if [ "$?" == 0 ] && [ "$TEST_TYPE" != build_website ] && \
! echo "$git_diff" | grep -qvE '(\.md$)|(^(docs))/'
then then
echo "Only docs were updated, stopping build process." echo "Only docs were updated, stopping build process."
exit exit