forked from nuaatug/nuaathesis
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
40 lines (31 loc) · 1.37 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
32
33
34
35
36
37
38
39
40
image: Visual Studio 2017
clone_depth: 5
environment:
Path: '%Path%;C:\texlive\bin\win32'
install:
# install Chinese Simplified fonts
- ps: Set-Service BITS -StartupType Automatic; Set-Service wuauserv -StartupType Automatic
- ps: Start-Service BITS; Start-Service wuauserv
- ps: Import-Module Dism; Get-WindowsCapability -online | where { $_.Name -match "Font" -and $_.Name -match "Hans" } | Add-WindowsCapability -online
# get online installer
- curl -fsSL -o install-tl.zip "http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip"
# unzip
- 7z x install-tl.zip -y
- rm install-tl.zip
# install basic texlive components
#
# step 1: copy the profile to an absolute path
- mkdir C:\texlive && copy .ci\texlive-windows.profile C:\texlive\texlive.profile
# step 2: rename the install directory to a fixed name
- ps: dir | where { $_ -match "$install-tl" -and $_ -notmatch "install-tl.zip" } | Rename-Item -NewName "install-tl"
# step 3: invoke installer in CMD instead of PS
- echo "" | install-tl\install-tl-windows.bat -profile C:\texlive\texlive.profile
# install everything else
- ps: tlmgr install (Get-Content .\.ci\texlive.pkgs | where { $_ -notmatch "(^\s*#)|(^\s*$)" })
build_script:
- echo | build.bat
after_build:
- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && .ci/pack.sh"
artifacts:
- path: '*.pdf'
- path: '*.zip'