Skip to content

Commit 7eeecd1

Browse files
committed
[travis-ci] Add check for \opt without argument
1 parent 53b6288 commit 7eeecd1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ env:
88
- BUILD_TYPE=complete # build manually and regenerate figures, grammar, and cross-references
99
- BUILD_TYPE=check-whitespace # check for whitespace at the ends of lines
1010
- BUILD_TYPE=check-newlines # check for blank lines at the ends of files
11+
- BUILD_TYPE=check-macro-use # check for proper macro use
1112

1213
script:
1314
# Build std.pdf
@@ -43,6 +44,11 @@ script:
4344
- if [ "$BUILD_TYPE" = "check-newlines" ]; then
4445
for f in source/*.tex; do [ $(tail -c 2 $f | wc -l) -eq 1 ] || exit 1; done;
4546
fi
47+
# Fail if macros are used incorrectly
48+
- if [ "$BUILD_TYPE" = "check-macro-use" ]; then
49+
! grep '\\opt[^{}]' source/*.tex;
50+
! grep 'opt{}' source/*.tex;
51+
fi
4652
# Check to see if generated files are out-dated
4753
- pushd source
4854
- for FIGURE in *.dot; do

0 commit comments

Comments
 (0)