forked from sjtug/SJTUThesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (36 loc) · 1.57 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
os:
- linux
sudo: required
install:
- REMOTE="http://mirror.ctan.org/systems/texlive/tlnet"
- INSTALL="/tmp/install-texlive"
- mkdir -p $INSTALL
- curl -sSL $REMOTE/install-tl-unx.tar.gz | tar -xzv -C $INSTALL --strip-components=1
- echo "selected_scheme scheme-basic" >> $INSTALL/tl.profile
- echo "collection-basic 1" >> $INSTALL/tl.profile
- echo "collection-bibtexextra 1" >> $INSTALL/tl.profile
- echo "collection-fontsextra 1" >> $INSTALL/tl.profile
- echo "collection-fontsrecommended 1" >> $INSTALL/tl.profile
- echo "collection-langchinese 1" >> $INSTALL/tl.profile
- echo "collection-latex 1" >> $INSTALL/tl.profile
- echo "collection-latexextra 1" >> $INSTALL/tl.profile
- echo "collection-latexrecommended 1" >> $INSTALL/tl.profile
- echo "collection-mathscience 1" >> $INSTALL/tl.profile
- echo "collection-xetex 1" >> $INSTALL/tl.profile
- echo "tlpdbopt_autobackup 0" >> $INSTALL/tl.profile
- echo "tlpdbopt_install_docfiles 0" >> $INSTALL/tl.profile
- echo "tlpdbopt_install_srcfiles 0" >> $INSTALL/tl.profile
- sudo $INSTALL/install-tl -profile $INSTALL/tl.profile
- VERSION=$($INSTALL/install-tl --version | grep 'version' | grep -o '[0-9]\{4\}')
- PLATFORM=$($INSTALL/install-tl --print-platform)
- TEXBIN="/usr/local/texlive/${VERSION}/bin/${PLATFORM}"
- export "PATH=$TEXBIN:$PATH"
- sudo $TEXBIN/tlmgr install latexmk ulem
before_script:
- sed -i 's/,\s*fontset=\?\w*//' thesis.tex
- sed -i '/setmainfont/d' sjtuthesis.cls
script:
- make validate
notifications:
webhooks: https://www.travisbuddy.com/
on_success: never