Repository navigation
Expand file tree
/
Copy path.travis.yml
More file actions
61 lines (57 loc) · 1.52 KB
/
Copy path.travis.yml
File metadata and controls
61 lines (57 loc) · 1.52 KB
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
#
# Builds the C++ standard document on Travis CI <https://travis-ci.org/cpluscplus/draft>
#
env:
- BUILD_TYPE=latexmk # build using latexmk
- BUILD_TYPE=make # build using Makefile
- BUILD_TYPE=manual # build manually
- BUILD_TYPE=complete # build manually and regenerate figures, grammer, and cross-references
script:
# Build std.pdf
- pushd source
- if [ "$BUILD_TYPE" = "latexmk" ]; then
latexmk -pdf std;
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;
../tools/makegram;
fi
- if [ "$BUILD_TYPE" = "manual" -o "$BUILD_TYPE" = "complete" ]; then
pdflatex std;
pdflatex std;
pdflatex std;
makeindex generalindex;
makeindex libraryindex;
makeindex grammarindex;
makeindex impldefindex;
pdflatex std;
pdflatex std;
fi
- popd
# Check to see if generated files are out-dated
- pushd source
- ../tools/makegram && git status --porcelain grammar.tex
- 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-binaries
- graphviz
- lmodern