Skip to content

Commit e054ed0

Browse files
committed
Travis CI: Simplify whitespace test.
1 parent daec22b commit e054ed0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,8 @@ script:
3838
- popd
3939
# Fail if there is whitespace at the ends of any lines
4040
- if [ "$BUILD_TYPE" = "check-whitespace" ]; then
41-
export TEST_STATUS=0;
42-
grep '\s$' source/*.tex && export TEST_STATUS=1;
43-
fi;
44-
if [ "0$TEST_STATUS" != "00" ]; then
45-
false;
46-
fi;
41+
! grep '\s$' source/*.tex;
42+
fi
4743
# Check to see if generated files are out-dated
4844
- pushd source
4945
- for FIGURE in *.dot; do

0 commit comments

Comments
 (0)