Skip to content

Commit

Permalink
ci(travis): filtering commits without code change
Browse files Browse the repository at this point in the history
  • Loading branch information
huafu committed Sep 7, 2018
1 parent 4746dc3 commit 84a708b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ node_js:
- "6"

before_install:
# https://github.com/scikit-learn/scikit-learn/issues/10927
- |
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
- dpkg --compare-versions `npm -v` ge 5.8 || npm i -g npm@latest

script:
Expand Down

0 comments on commit 84a708b

Please sign in to comment.