Skip to content

Commit

Permalink
appveyor: Add
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <gaoce@caicloud.io>
  • Loading branch information
gaocegege committed May 16, 2018
1 parent 97bc922 commit 39c4b6c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .appveyor.yml
@@ -1,3 +1,28 @@
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 -d c:\projects\tmp
# - xcopy c:\projects\tmp\* c:\projects\install-tl
- unzip c:\projects\install-tl.zip
# 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-20180513\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:
# - set VERSION=$(c:\projects\install-tl-20180512\install-tl-windows.bat --version | grep 'version' | grep -o '[0-9]\{4\}')
# - PLATFORM=$(c:\projects\install-tl-20180512\install-tl-windows.bat --print-platform)
- set TEXBIN="c:\texlive\2018\bin\win32"
- set PATH=%PATH%;%TEXBIN%
- tlmgr install latexmk ulem fandol
- cd c:\projects\SJTUThesis
- xelatex -no-pdf -halt-on-error thesis
- biber --debug thesis

0 comments on commit 39c4b6c

Please sign in to comment.