Skip to content

Commit 256a94b

Browse files
committed
Improved travis build
1 parent 53de24b commit 256a94b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ cache:
1414
- $HOME/docs/node_modules
1515
before_install:
1616
- |
17-
if [ "$TEST_TYPE" != build_website ] && \
18-
! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs))/'
17+
git_diff=$(git diff --name-only $TRAVIS_COMMIT_RANGE)
18+
if [ "$?" == 0 ] && [ "$TEST_TYPE" != build_website ] && \
19+
! echo "$git_diff" | grep -qvE '(\.md$)|(^(docs))/'
1920
then
2021
echo "Only docs were updated, stopping build process."
2122
exit

0 commit comments

Comments
 (0)