forked from cplusplus/draft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (60 loc) · 1.7 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Builds the C++ standard document on Travis CI <https://travis-ci.org/cplusplus/draft>
#
env:
- BUILD_TYPE=latexmk # build using latexmk, also check for overfull hboxes
- BUILD_TYPE=make # build using Makefile
- BUILD_TYPE=complete # build manually and regenerate figures, grammar, and cross-references
- BUILD_TYPE=check-whitespace # check for whitespace at the ends of lines
script:
# Build std.pdf
- pushd source
- if [ "$BUILD_TYPE" = "latexmk" ]; then
latexmk -pdf std;
! grep -Fe "Overfull \\hbox" std.log;
fi
- if [ "$BUILD_TYPE" = "make" ]; then
make -j2;
fi
- if [ "$BUILD_TYPE" = "complete" ]; then
for FIGURE in *.dot; do
dot -o$(basename $FIGURE .dot).pdf -Tpdf $FIGURE;
done;
pdflatex std;
pdflatex std;
pdflatex std;
makeindex generalindex;
makeindex libraryindex;
makeindex grammarindex;
makeindex impldefindex;
makeindex -s basic.gst -o xrefindex.gls xrefindex.glo
pdflatex std;
pdflatex std;
fi
- popd
# Fail if there is whitespace at the ends of any lines
- if [ "$BUILD_TYPE" = "check-whitespace" ]; then
! grep '\s$' source/*.tex;
fi
# Check to see if generated files are out-dated
- pushd source
- for FIGURE in *.dot; do
dot -o$(basename $FIGURE .dot).pdf -Tpdf $FIGURE;
git status --porcelain $(basename $FIGURE .dot).pdf;
done
- popd
sudo: false
addons:
apt:
packages:
- latexmk
- poppler-utils
- texlive-binaries
- texlive-fonts-recommended
- texlive-latex-base
- texlive-latex-extra
- texlive-latex-recommended
- texlive-generic-recommended
- texlive-binaries
- graphviz
- lmodern