-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathappveyor.yml
33 lines (26 loc) · 1018 Bytes
/
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
version: '{build}-{branch}'
image: Visual Studio 2022
clone_depth: 1
init:
- ps: |
function craft() {
& C:\python310\python.exe "C:\CraftMaster\CraftMaster\CraftMaster.py" --config "$env:APPVEYOR_BUILD_FOLDER\appveyor.ini" --variables "APPVEYOR_BUILD_FOLDER=$env:APPVEYOR_BUILD_FOLDER" --target $env:TARGET -c $args
if($LASTEXITCODE -ne 0) {exit $LASTEXITCODE}
}
install:
- ps: |
#use cmd to silence powershell behaviour for stderr
& cmd /C "git clone -q --depth=1 https://invent.kde.org/packaging/craftmaster.git C:\CraftMaster\CraftMaster 2>&1"
& cmd /C "git clone https://gitlab.freedesktop.org/poppler/test.git $env:APPVEYOR_BUILD_FOLDER/../test 2>&1"
craft craft
craft --install-deps poppler
build_script:
- ps: |
craft --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER poppler
test_script:
- ps: |
craft -v --src-dir $env:APPVEYOR_BUILD_FOLDER --test poppler
environment:
matrix:
- TARGET: windows-mingw_64-gcc
- TARGET: windows-msvc2022_64-cl