Skip to content

Commit

Permalink
Merge pull request #3 from hdhoang/travis_skip_docs
Browse files Browse the repository at this point in the history
travis: skip docs-only commit range
  • Loading branch information
ah- authored Mar 2, 2018
2 parents d5a8e50 + a0ecb64 commit df19670
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ matrix:
packages:
- binutils-arm-none-eabi

before_install: set -e
before_install:
- |
set -e
# fail loudly when force-pushed
MODIFIED_FILES=$(git diff --name-only $TRAVIS_COMMIT_RANGE)
# waiting for native solution https://github.com/travis-ci/travis-ci/issues/6301
if ! echo ${MODIFIED_FILES} | grep -qvE '(\.md$)|(^docs)/'; then
echo "Only docs were updated, stopping build process."
exit
fi
install:
- bash ./scripts/install.sh
Expand Down

0 comments on commit df19670

Please sign in to comment.