diff --git a/.appveyor.yml b/.appveyor.yml index 95868d62..3d8eb804 100644 --- a/.appveyor.yml +++ b/.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