Abort the CI build if no files used in the build were updated.

This commit is contained in:
mikeller 2019-02-22 00:55:44 +13:00
parent e053965489
commit 533b832d1d
1 changed files with 8 additions and 0 deletions

View File

@ -42,6 +42,14 @@ env:
# - TARGET=...
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$)|(^(docs|support|unified_targets))/' || {
echo "Only files not used in the build process were updated, aborting."
exit
}
- pip install --user cpp-coveralls
- gem install coveralls-lcov