summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-05-06 11:42:20 -0700
committerGitHub <noreply@github.com>2019-05-06 11:42:20 -0700
commitae7c24e664cf95fb63fcb2bac2477d7391cae01b (patch)
treed6478f7117d648cfcb810ce05fc6cb316d004c45
parent923c6465c97dc22d0eccc6fcbf4c5ae701e92ea8 (diff)
downloadbinaryen-ae7c24e664cf95fb63fcb2bac2477d7391cae01b.tar.gz
binaryen-ae7c24e664cf95fb63fcb2bac2477d7391cae01b.tar.bz2
binaryen-ae7c24e664cf95fb63fcb2bac2477d7391cae01b.zip
Don't show stderr output of clang-tidy in Travis CI (#2089)
When we run clang-tidy for the second time to show the error, don't show stderr output because they are not very helpful and all error messages are printed in stdout.
-rwxr-xr-xclang-tidy-diff.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tidy-diff.sh b/clang-tidy-diff.sh
index 931ad1a11..ece8776f9 100755
--- a/clang-tidy-diff.sh
+++ b/clang-tidy-diff.sh
@@ -8,6 +8,6 @@ then
echo "Fix clang-tidy errors before committing!"
echo
# Run clang-tidy once again to show the error
- git diff -U0 $MERGE_BASE | $CLANG_TIDY_DIFF -quiet -p1
+ git diff -U0 $MERGE_BASE | $CLANG_TIDY_DIFF -quiet -p1 2> /dev/null
exit 1
fi