-
Notifications
You must be signed in to change notification settings - Fork 43
/
.appveyor.yml
191 lines (157 loc) · 5.84 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
branches:
except:
- gh-pages
skip_commits:
message: /\[ci skip\]/
clone_depth: 10
max_jobs: 1
image:
- Visual Studio 2022
- Ubuntu2204
environment:
deploy_key_secret:
secure: oUQd0vmgGMlZagBkEVim8EJrEYXtW0gCnIE6PE+aDvZs9m139IrMDQNUKErg1iGw
deploy_key_salt:
secure: nP2YRfsA9mfQN7AkaoAzhvl5YwFZMzfA+oFQ+44CEf/jI0Datv+kjh6j0btMARyojsZF8dBRMKk1y8VnV+CtfQ==
matrix:
- TEST_SUITE: miktex-latest
TEST_CATEGORY: regtest_win
PROTODIR: proto_tl2024
WARMUP_COMPILE: 1
- TEST_SUITE: texlive-latest
TEST_CATEGORY: regtest_linux
PROTODIR: proto_tl2024
- TEST_SUITE: texlive-latest
TEST_CATEGORY: regtest_win
PROTODIR: proto_tl2024
- TEST_SUITE: texlive-2023
TEST_CATEGORY: regtest_win
PROTODIR: proto_tl2023
- TEST_SUITE: texlive-2022
TEST_CATEGORY: regtest_win
PROTODIR: proto_tl2022
- TEST_SUITE: texlive-2021
TEST_CATEGORY: regtest_win
PROTODIR: proto_tl2021
matrix:
exclude:
- image: Visual Studio 2022
TEST_CATEGORY: regtest_linux
- image: Ubuntu2204
TEST_CATEGORY: regtest_win
for:
- matrix:
only:
- image: Ubuntu2204
TEST_CATEGORY: regtest_linux
install:
- git submodule update --init --recursive
# 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 ult-base/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 -o ConnectTimeout=10 -vvvT -T [email protected] || true) 2>&1
fi
- sh: ult-base/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:
- git submodule update --init --recursive
# 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 ult-base\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 -o ConnectTimeout=10 -vvvT -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: . ".\ult-base\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 ".\ult-base\ci\appveyor_win_postinstall_${env:TEST_SUITE}.ps1") {
. ".\ult-base\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'))