Skip to content

Commit 4ccff01

Browse files
godbyktkoeppe
authored andcommitted
Add Travis CI check for whitespace at the ends of lines. (#1477)
1 parent 44f489b commit 4ccff01

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ env:
77
- BUILD_TYPE=make # build using Makefile
88
- BUILD_TYPE=manual # build manually
99
- BUILD_TYPE=complete # build manually and regenerate figures, grammer, and cross-references
10+
- BUILD_TYPE=check-whitespace # check for whitespace at the ends of lines
1011

1112
script:
1213
# Build std.pdf
@@ -35,6 +36,10 @@ script:
3536
pdflatex std;
3637
fi
3738
- popd
39+
# Fail if there is whitespace at the ends of any lines
40+
- if [ "$BUILD_TYPE" = "check-whitespace" ]; then
41+
! grep '\s$' source/*.tex;
42+
fi
3843
# Check to see if generated files are out-dated
3944
- pushd source
4045
- for FIGURE in *.dot; do

0 commit comments

Comments
 (0)