-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
48 lines (42 loc) · 1.27 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
addons:
apt:
packages:
- fonts-sil-doulos
- lmodern
- pgf
- texlive-base
- texlive-science
- texlive-fonts-extra
- texlive-fonts-recommended
- texlive-font-utils
- texlive-lang-greek
- texlive-lang-czechslovak
- texlive-latex-base
- texlive-latex-extra
- texlive-latex-recommended
- texlive-math-extra
- texlive-xetex
# for tests
- latex-beamer
- python-matplotlib
- python-numpy
before_install:
# - sudo sed 's/deb /deb [trusted=yes] /' -i /etc/apt/sources.list /etc/apt/sources.list.d/*
# we need poppler-utils >= 0.25
- sudo add-apt-repository -y ppa:alexis-via/poppler-utils-backport
- sudo apt-get update -qy --allow-unauthenticated || true
- sudo apt-get install --allow-unauthenticated -y poppler-utils
install:
before_script:
script:
- make test
after_failure:
# set to true only if you need all PNGs, not only diffs
- SHOW_ALL_PNG=false
# to reduce output size
- ${SHOW_ALL_PNG} || cat ./tests/out/*.log
- echo "MARK"
- ${SHOW_ALL_PNG} || tar cj ./tests/out/*-diff.png | base64
- ${SHOW_ALL_PNG} && tar cj ./tests/out/*.png | base64
- echo "MARK"
- echo "Test failed, 'cat MARK/MARK | base64 -d | tar xj' to see respective diff PNGs"