Skip to content

Commit cbdd632

Browse files
committed
travis: echo failure if astyle fails
1 parent 6d6c09b commit cbdd632

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.travis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ matrix:
132132
- git diff --name-only $TRAVIS_BRANCH | grep '.*\.\(h\|c\|hpp\|cpp\)' | fgrep -v -f .astyleignore | xargs -n 100 -I {} bash -c "astyle -n --options=.astylerc \"{}\"" > astyle-files-changed.out;
133133
if [ $(cat astyle-files-changed.out | grep Formatted | wc -l) -ne 0 ]; then
134134
git --no-pager diff;
135-
echo "Please fix style issues as shown above";
136-
exit 1;
135+
echo "";
136+
echo "AStyle check failed, please fix style issues as shown above";
137+
(exit 1);
137138
else
138139
echo "Coding style check OK";
139140
fi
@@ -156,9 +157,6 @@ matrix:
156157
STATUSM="$STATUSM ($(python -c "print '%+d' % ($CURR-$PREV)") files)"
157158
fi
158159
- bash -c "$STATUS" success "$STATUSM"
159-
after_failure:
160-
- bash -c "$STATUS" coding style failures"
161-
162160
- env:
163161
- NAME=events
164162
- EVENTS=events

0 commit comments

Comments
 (0)