forked from Walker96/SJTUThesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
31 lines (26 loc) · 1.17 KB
/
.appveyor.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
version: v0.10.{build}
os: Visual Studio 2017
clone_folder: c:\projects\SJTUThesis
install:
- curl -L http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip > c:\projects\install-tl.zip
- cd c:\projects
- unzip c:\projects\install-tl.zip
- ps: cp -r $(ls install-tl-* | % {$_.FullName}) c:\projects\install-tl
# Use echo to send a CRLF to the program to stop hanging on pause command.
# See https://stackoverflow.com/questions/33374713/how-to-skip-the-procedure-needed-to-press-any-key-to-exit-the-exe-in-batch-file
- echo . | c:\projects\install-tl\install-tl-windows.bat --profile c:\projects\SJTUThesis\.ci\tl.profile
before_build:
- cd c:\projects\SJTUThesis
- sed -i 's/,\s*fontset=\?\w*//' thesis.tex
- sed -i '/setmainfont/d' sjtuthesis.cls
- sed -i 's/documentclass\[/documentclass[fontset=fandol, /' thesis.tex
build_script:
- ps: cd c:\texlive\
# Get the directory of texlive. E.g. c:\texlive\2018
- ps: $TEXLIVE=$(ls 20* | % {$_.FullName})
- ps: $TEXBIN="$TEXLIVE\bin\win32"
- ps: $env:Path += ";"+$TEXBIN
- tlmgr install latexmk ulem fandol
- cd c:\projects\SJTUThesis
- xelatex -no-pdf -halt-on-error thesis
- biber --debug thesis