[build] Don't run Travis 'check' build on master

This commit is contained in:
Bruno de Oliveira Abinader
2017-05-12 18:47:59 +03:00
parent 3e7f5f34e3
commit d3f23b83d4
2 changed files with 4 additions and 1 deletions

View File

@@ -81,6 +81,9 @@ matrix:
script:
- git fetch origin master:refs/remotes/origin/master
- make check
branches:
except:
- master
# EGL - Node v4 - Clang 3.9 - Release
- os: linux

View File

@@ -37,7 +37,7 @@ function run_clang_tidy_diff() {
${CLANG_TIDY_PREFIX}/share/clang-tidy-diff.py \
-clang-tidy-binary ${CLANG_TIDY} \
2>/dev/null)
if [[ -n $OUTPUT ]]; then
if [[ -n $OUTPUT ]] && [[ $OUTPUT != "No relevant changes found." ]]; then
echo -e "${OUTPUT}"
exit 1
fi