2018-01-17 17:57:57 +03:00
|
|
|
version: '{build}-{branch}'
|
|
|
|
|
2021-05-14 17:34:05 +03:00
|
|
|
image: Visual Studio 2019
|
|
|
|
|
2018-01-17 17:57:57 +03:00
|
|
|
branches:
|
2021-07-21 11:19:41 +03:00
|
|
|
only:
|
|
|
|
- master
|
2018-01-17 17:57:57 +03:00
|
|
|
|
2021-05-11 20:11:54 +03:00
|
|
|
clone_depth: 1
|
2018-01-17 17:57:57 +03:00
|
|
|
|
|
|
|
init:
|
|
|
|
- ps: |
|
2021-05-14 17:34:05 +03:00
|
|
|
function craft() {
|
|
|
|
cmd /C "echo %PATH%"
|
|
|
|
& "C:\Python39-x64\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
|
2018-01-17 17:57:57 +03:00
|
|
|
if($LASTEXITCODE -ne 0) {exit $LASTEXITCODE}
|
|
|
|
}
|
2021-07-16 16:55:45 +03:00
|
|
|
function crafttests() {
|
|
|
|
cmd /C "echo %PATH%"
|
|
|
|
& "C:\Python39-x64\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
|
|
|
|
}
|
2018-01-17 17:57:57 +03:00
|
|
|
|
|
|
|
install:
|
|
|
|
- ps: |
|
|
|
|
#use cmd to silence powershell behaviour for stderr
|
2021-05-14 17:33:27 +03:00
|
|
|
& cmd /C "git clone -q --depth=1 https://invent.kde.org/packaging/craftmaster.git C:\CraftMaster\CraftMaster 2>&1"
|
2021-05-14 17:34:05 +03:00
|
|
|
craft --add-blueprint-repository [git]https://github.com/nextcloud/desktop-client-blueprints.git
|
|
|
|
craft craft
|
|
|
|
craft --install-deps nextcloud-client
|
|
|
|
craft nsis
|
2018-01-17 17:57:57 +03:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- ps: |
|
2021-05-14 17:34:05 +03:00
|
|
|
craft --src-dir $env:APPVEYOR_BUILD_FOLDER nextcloud-client
|
2018-01-17 17:57:57 +03:00
|
|
|
|
2021-07-16 16:55:45 +03:00
|
|
|
test_script:
|
|
|
|
- ps: |
|
|
|
|
crafttests --test --src-dir $env:APPVEYOR_BUILD_FOLDER nextcloud-client
|
2018-01-17 17:57:57 +03:00
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
2021-05-11 20:11:54 +03:00
|
|
|
- TARGET: windows-msvc2019_64-cl
|