-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.appveyor.yml
216 lines (177 loc) · 6.73 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
branches:
except:
- gh-pages
skip_commits:
message: /\[ci skip\]/
clone_depth: 10
max_jobs: 5
image:
- Visual Studio 2022
- Ubuntu2204
environment:
deploy_key_secret:
secure: B4JcjFe25tjV6I8veR+a0tSh3wvyoE4/N3Qr5r4OoRF5qU3bakG0+sgJiC4nSsx8
deploy_key_salt:
secure: iofUyU+lLVL09ekeB/A6iCg86QG5sf65FblHFLnAyjO79UmGzfu9Mqs7VE0/xEE37t1R1OC1/lLBeq0yWBf+nQ==
matrix:
- TEST_SUITE: miktex-latest
TEST_CATEGORY: regtest_win
PROTODIR: proto_tl2022
WARMUP_COMPILE: 1
- TEST_SUITE: miktex_install_tests
TEST_CATEGORY: miktex_install_tests
PROTODIR: proto_tl2022
- TEST_SUITE: texlive-latest
TEST_CATEGORY: regtest_linux
PROTODIR: proto_tl2022
- TEST_SUITE: texlive-latest
TEST_CATEGORY: regtest_win
PROTODIR: proto_tl2022
- TEST_SUITE: texlive-2022
TEST_CATEGORY: regtest_win
PROTODIR: proto_tl2022
- TEST_SUITE: texlive-2021
TEST_CATEGORY: regtest_win
PROTODIR: proto_tl2016
matrix:
exclude:
- image: Visual Studio 2022
TEST_CATEGORY: regtest_linux
- image: Ubuntu2204
TEST_CATEGORY: miktex_install_tests
- image: Ubuntu2204
TEST_CATEGORY: regtest_win
for:
- matrix:
only:
- image: Visual Studio 2022
TEST_CATEGORY: miktex_install_tests
install:
- ps: . ".\ci\appveyor_win_install_miktex-latest-minimal.ps1"
- refreshenv
- pdflatex -version
build: off
test_script:
- initexmf --user-roots="%USERPROFILE%/texmf"
- kpsewhich --var-value TEXMFHOME
- C:\msys64\usr\bin\bash.exe --login -c "cd $APPVEYOR_BUILD_FOLDER && make install CONTINUE=y"
- ps: if (-not (Test-Path "${env:USERPROFILE}\texmf\tex\latex" -PathType Container)) { throw "FAILED!" }
- ps: rm "${env:USERPROFILE}\texmf\tex" -Recurse -Force
- initexmf --user-roots="%USERPROFILE%/texmf2;%USERPROFILE%/texmf"
- kpsewhich --var-value TEXMFHOME
- C:\msys64\usr\bin\bash.exe --login -c "cd $APPVEYOR_BUILD_FOLDER && make install CONTINUE=y"
- ps: if (-not (Test-Path "${env:USERPROFILE}\texmf2\tex\latex" -PathType Container)) { throw "FAILED!" }
- ps: rm "${env:USERPROFILE}\texmf2\tex" -Recurse -Force
- matrix:
only:
- image: Ubuntu2204
TEST_CATEGORY: regtest_linux
install:
# Decrypt deploy key
- sh: |
source $HOME/venv3.12/bin/activate
python -mpip install --upgrade pip 2>&1
python -mpip install pycryptodomex
deactivate
- sh: |
if [[ -z "$APPVEYOR_PULL_REQUEST_NUMBER" ]]; then
echo "Decrypting deploy key"
source $HOME/venv3.12/bin/activate
python ci/secure-file.py -decrypt ci/appveyor-deploy-key.enc -secret ${deploy_key_secret} -salt ${deploy_key_salt} -out "${HOME}/.ssh/id_rsa"
deactivate
chmod 600 "${HOME}/.ssh/id_rsa"
echo "Testing deploy key"
(ssh -o StrictHostKeyChecking=no -T [email protected] || true) 2>&1
fi
- sh: ci/appveyor_linux_install_${TEST_SUITE}.sh
- tlmgr conf
build_script:
- sh: make install CONTINUE=y
- sh: sudo -i texhash
test_script:
- sh: |
source $HOME/venv3.12/bin/activate
make -C test PYTHON=python PROTODIR=${PROTODIR}
on_success:
- sh: ci/appveyor_linux_after.sh 0
on_failure:
- sh: ci/appveyor_linux_after.sh 1
- matrix:
only:
- image: Visual Studio 2022
TEST_CATEGORY: regtest_win
install:
# Decrypt deploy key
- ps: >-
$OldErrorActionPreference = $ErrorActionPreference;
$ErrorActionPreference = "Continue";
py -3.12-64 -mpip install --upgrade pip 2>&1 | %{ "$_" };
$ErrorActionPreference = $OldErrorActionPreference;
- ps: py -3.12-64 -mpip install pycryptodomex
- ps: >-
$IsPullRequest = (Test-Path Env:APPVEYOR_PULL_REQUEST_NUMBER) -And $Env:APPVEYOR_PULL_REQUEST_NUMBER;
if (-Not $IsPullRequest) {
Write-Host "Decrypting deploy key";
py -3.12-64 ci\secure-file.py -decrypt ci\appveyor-deploy-key.enc -secret $Env:deploy_key_secret -salt $Env:deploy_key_salt -out "$($Env:USERPROFILE)\.ssh\id_rsa";
Write-Host "Testing deploy key";
$OldErrorActionPreference = $ErrorActionPreference;
$ErrorActionPreference = "Continue";
ssh -o StrictHostKeyChecking=no -T [email protected] 2>&1 | %{ "$_" };
$ErrorActionPreference = $OldErrorActionPreference;
}
- choco upgrade chocolatey -y
- refreshenv
- choco install -y imagemagick -PackageParameters LegacySupport=true
- choco install -y ghostscript
- ps: >-
$GsPath = (gci 'C:\Program Files\gs' -Include 'bin' -Directory -Recurse | select -f 1).FullName;
$OldPath = [Environment]::GetEnvironmentVariable('path', 'machine');
$NewPath = $OldPath + ';' + $GsPath;
[Environment]::SetEnvironmentVariable('path', $NewPath, 'machine');
- choco install -y xpdf-utils
- refreshenv
- set
- compare -version
- gswin64c -v
- where pdfinfo
- ps: >-
$OldErrorActionPreference = $ErrorActionPreference;
$ErrorActionPreference = "Continue";
pdfinfo -v 2>&1 | %{ "$_" };
if ($LastExitCode -ne 0 -And $LastExitCode -ne 99) {
$host.SetShouldExit($LastExitCode);
}
$ErrorActionPreference = $OldErrorActionPreference;
- ps: . ".\ci\appveyor_win_install_${env:TEST_SUITE}.ps1"
- refreshenv
- pdflatex -version
build_script:
- 'C:\msys64\usr\bin\bash.exe -e -l -c "cd $APPVEYOR_BUILD_FOLDER && make install CONTINUE=y"'
- ps: >-
if (Test-Path -Path ".\ci\appveyor_win_postinstall_${env:TEST_SUITE}.ps1") {
. ".\ci\appveyor_win_postinstall_${env:TEST_SUITE}.ps1"
}
test_script:
- 'C:\msys64\usr\bin\bash.exe -e -l -c "cd $APPVEYOR_BUILD_FOLDER && ulimit -n 3200 && make -C test PYTHON=\"py -3.12-64\" PROTODIR=${PROTODIR} WARMUP_COMPILE=${WARMUP_COMPILE}"'
on_success:
- ps: >-
try
{
. .\ci\appveyor_win_after.ps1 -TestResult 0
}
catch [Exception]
{
echo $_.Exception | FL -Force
}
on_failure:
- ps: >-
try
{
. .\ci\appveyor_win_after.ps1 -TestResult 1
}
catch [Exception]
{
echo $_.Exception | FL -Force
}
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))