Skip to content

Commit 4ba4e9c

Browse files
authored
[travis] Make overfull hboxes a presubmit error. (#1780)
Also delete the "manual" check since "complete" subsumes "manual".
1 parent ebb08a5 commit 4ba4e9c

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
@@ -3,17 +3,17 @@
33
#
44

55
env:
6-
- BUILD_TYPE=latexmk # build using latexmk
6+
- BUILD_TYPE=latexmk # build using latexmk, also check for overfull hboxes
77
- BUILD_TYPE=make # build using Makefile
8-
- BUILD_TYPE=manual # build manually
9-
- BUILD_TYPE=complete # build manually and regenerate figures, grammer, and cross-references
8+
- BUILD_TYPE=complete # build manually and regenerate figures, grammar, and cross-references
109
- BUILD_TYPE=check-whitespace # check for whitespace at the ends of lines
1110

1211
script:
1312
# Build std.pdf
1413
- pushd source
1514
- if [ "$BUILD_TYPE" = "latexmk" ]; then
1615
latexmk -pdf std;
16+
! grep -Fe "Overfull \\hbox" std.log;
1717
fi
1818
- if [ "$BUILD_TYPE" = "make" ]; then
1919
make -j2;
@@ -22,8 +22,6 @@ script:
2222
for FIGURE in *.dot; do
2323
dot -o$(basename $FIGURE .dot).pdf -Tpdf $FIGURE;
2424
done;
25-
fi
26-
- if [ "$BUILD_TYPE" = "manual" -o "$BUILD_TYPE" = "complete" ]; then
2725
pdflatex std;
2826
pdflatex std;
2927
pdflatex std;

0 commit comments

Comments
 (0)