-
Notifications
You must be signed in to change notification settings - Fork 3
/
.appveyor.yml
75 lines (59 loc) · 2.65 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
environment:
matrix:
- PYTHON: "C:\\Python34"
PYTHON_VERSION: "3.4.x" # currently 3.4.3
PYTHON_ARCH: "32"
access_token:
secure: dUqKkqxYQp2WBhKWr7dtWRM4TA7/YFXCL8TC/KwVxif6Mie71tJtyQ38zQYoiojj
branches:
only:
- trigger
install:
# Download setup scripts and unzip
- ps: "wget https://github.com/cloudify-cosmo/appveyor-utils/archive/master.zip -OutFile ./master.zip"
- "7z e master.zip */appveyor/* -oappveyor"
# Install Python (from the official .msi of http://python.org) and pip when
# not already installed.
- "powershell ./appveyor/install.ps1"
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
# Install the patacrep compilation toolchain
- "pip install https://github.com/patacrep/patacrep/archive/master.zip"
# Git setup
- "git checkout master"
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git config --global user.email "[email protected]"
- git config --global user.name "AppVeyor"
- git config --global push.default simple
# Download miktex portable (if not cached)
- ps: "If (!(Test-Path miktex-portable.exe)){wget http://mirrors.ctan.org/systems/win32/miktex/setup/miktex-portable-2.9.5719.exe -OutFile ./miktex-portable.exe}"
# Unzip miktex portable
- "7z x miktex-portable.exe * -aot -omiktex > nul"
# Let the binaries be directly callable
- cmd: set PATH=%PATH%;C:\projects\patadata-pdf\miktex\miktex\bin
# Update fonts
- cmd: luaotfload-tool.exe --update
# Manually install required texlive packages
- ps: "wget https://raw.githubusercontent.com/patacrep/patacrep/master/texlive_packages.txt -OutFile ./texlive_packages.txt"
- cmd: mpm.exe --install-some texlive_packages.txt
# Retrieve patadata
- ps: "wget https://github.com/patacrep/patadata/archive/master.zip -OutFile ./patadata.zip"
- "7z x patadata.zip * -aot -opatadata > nul"
build: false # Not a C# project, build stuff at the test step instead.
test_script:
# Compile the songbooks
- "songbook patadata\\patadata-master\\books\\songbook -v"
- "dir patadata\\patadata-master\\books"
- "dir ."
- "git add songbook.pdf"
- "git commit -m \"Automatic build\""
- "git push origin"
# Cache Miktex Portable file
cache:
- C:\projects\patadata-pdf\miktex-portable.exe