Skip to content

Commit 66aa2ac

Browse files
godbykzygoloid
authored andcommitted
Travis CI: Upgrade to newer TeX Live distribution.
1 parent bec6795 commit 66aa2ac

File tree

1 file changed

+25
-30
lines changed

1 file changed

+25
-30
lines changed

.travis.yml

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
# Builds the C++ standard document on Travis CI <https://travis-ci.org/cplusplus/draft>
33
#
44

5+
dist: trusty
6+
sudo: required
7+
language: cpp
8+
9+
services:
10+
- docker
11+
12+
before_install:
13+
- docker pull godbyk/texlive-basic:latest
14+
- docker run -itd -v $TRAVIS_BUILD_DIR:/$TRAVIS_REPO_SLUG --name texlive-basic godbyk/texlive-basic
15+
516
env:
617
- BUILD_TYPE=latexmk # build using latexmk, also check for overfull hboxes
718
- BUILD_TYPE=make # build using Makefile
@@ -14,26 +25,26 @@ script:
1425
# Build std.pdf
1526
- pushd source
1627
- if [ "$BUILD_TYPE" = "latexmk" ]; then
17-
latexmk -pdf std -silent;
28+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && latexmk -pdf std -silent";
1829
! grep -Fe "Overfull \\hbox" std.log;
1930
fi
2031
- if [ "$BUILD_TYPE" = "make" ]; then
21-
make -j2;
32+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && make -j2";
2233
fi
2334
- if [ "$BUILD_TYPE" = "complete" ]; then
2435
for FIGURE in *.dot; do
25-
dot -o$(basename $FIGURE .dot).pdf -Tpdf $FIGURE;
36+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && dot -o$(basename $FIGURE .dot).pdf -Tpdf $FIGURE";
2637
done;
27-
pdflatex std;
28-
pdflatex std;
29-
pdflatex std;
30-
makeindex generalindex;
31-
makeindex libraryindex;
32-
makeindex grammarindex;
33-
makeindex impldefindex;
34-
makeindex -s basic.gst -o xrefindex.gls xrefindex.glo
35-
pdflatex std;
36-
pdflatex std;
38+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && pdflatex std";
39+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && pdflatex std";
40+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && pdflatex std";
41+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && makeindex generalindex";
42+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && makeindex libraryindex";
43+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && makeindex grammarindex";
44+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && makeindex impldefindex";
45+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && makeindex -s basic.gst -o xrefindex.gls xrefindex.glo";
46+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && pdflatex std";
47+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && pdflatex std";
3748
fi
3849
- popd
3950
# Fail if there is whitespace at the ends of any lines
@@ -52,24 +63,8 @@ script:
5263
# Check to see if generated files are out-dated
5364
- pushd source
5465
- for FIGURE in *.dot; do
55-
dot -o$(basename $FIGURE .dot).pdf -Tpdf $FIGURE;
66+
docker exec -it texlive-basic bash -c "cd /$TRAVIS_REPO_SLUG/source && dot -o$(basename $FIGURE .dot).pdf -Tpdf $FIGURE";
5667
git status --porcelain $(basename $FIGURE .dot).pdf;
5768
done
5869
- popd
5970

60-
sudo: false
61-
62-
addons:
63-
apt:
64-
packages:
65-
- latexmk
66-
- poppler-utils
67-
- texlive-binaries
68-
- texlive-fonts-recommended
69-
- texlive-latex-base
70-
- texlive-latex-extra
71-
- texlive-latex-recommended
72-
- texlive-generic-recommended
73-
- texlive-binaries
74-
- graphviz
75-
- lmodern

0 commit comments

Comments
 (0)