forked from zestedesavoir/latex-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (37 loc) · 1.03 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
# Copied from Zeste de Savoir,
# https://github.com/zestedesavoir/zds-site/blob/a16c5fc932b361cbee5c6e61b24167605e24cd8b/.travis.yml
dist: trusty
language: python
python:
- 2.7
git:
depth: 1
cache:
apt: true
directories:
- $HOME/.texlive
addons:
apt:
packages:
- imagemagick
- librsvg2-bin
install:
- ./scripts/install_font.sh
- ./scripts/install_texlive.sh
- export PATH=$HOME/.texlive/bin/x86_64-linux:$PATH
- pip install Pygments
script:
- CURR=$(pwd)
- cd tests/ # run lua test first, otherwise it will not find zmdocument.lua
- make lua-test
- cd ..
- TEMPLATEDIR=$HOME/.texlive/texmf-local/tex/latex/latex-template
- TESTDIR=/tmp/latex-template-test
- mkdir -p $TEMPLATEDIR && cp -r . $TEMPLATEDIR && texhash
- mkdir -p $TESTDIR && cp -r ./tests/* $TESTDIR
- cd $TESTDIR
- patch Makefile < travis.patch # no cheating
- make tests
- cd $CURR
- rm -Rf $TESTDIR && rm -Rf $TEMPLATEDIR # avoid the package to be cached!
- texhash # avoid weird stuffs