summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-08 12:38:12 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-08 12:38:12 -0800
commit4b166dd8ae417b818a5ba214d8f2e648ac1d5be9 (patch)
tree6840d48d053b8d7cb57c064c87eac46381a103e7 /etc
parentb87c726c8c7cdfc80b11be7aec4fc7cb55bfeefd (diff)
downloadnng-4b166dd8ae417b818a5ba214d8f2e648ac1d5be9.tar.gz
nng-4b166dd8ae417b818a5ba214d8f2e648ac1d5be9.tar.bz2
nng-4b166dd8ae417b818a5ba214d8f2e648ac1d5be9.zip
Prevent uncrustify "error" checks from trigger travis errors.
There are multiple different versions of uncrustify, and they do not always generate the same output. (Arguably this is due to defects in uncrustify.) So for now we punt and don't throw an error, but we do still generate the output. Pay attention to this going forward.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/uncrustify_check.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/uncrustify_check.sh b/etc/uncrustify_check.sh
index aed05f61..e59c8425 100755
--- a/etc/uncrustify_check.sh
+++ b/etc/uncrustify_check.sh
@@ -44,5 +44,8 @@ done
if [ -n "$failed" ]
then
echo "Uncrustify differences found!" 1>&2
- exit 2
+ # Sadly, there are different versions of Uncrustify, and they don't
+ # seem to universally agree. So let's not trigger a build error on
+ # this -- but instead just emit it to standard output.
+ exit 0
fi