diff options
author | Matthieu Gallien <matthieu_gallien@yahoo.fr> | 2021-05-14 17:34:05 +0300 |
---|---|---|
committer | Matthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr> | 2021-07-21 14:33:07 +0300 |
commit | 360118634dcbb8dbae8803338cdf1a20912e6995 (patch) | |
tree | 316e7823f1366ca9608de280a2c56e53bd15d0a9 /appveyor.yml | |
parent | 9295bb42d6dcbd3461a25c6aed7eb5af0dd3c269 (diff) |
build the nextcloud client and not something else
Signed-off-by: Matthieu Gallien <matthieu_gallien@yahoo.fr>
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/appveyor.yml b/appveyor.yml index d18143927..3e7cdadb9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,16 +1,18 @@ version: '{build}-{branch}' +image: Visual Studio 2019 + branches: - only: - - master + except: + - playground clone_depth: 1 - init: - ps: | - function craft($target) { - & C:\Python36\python.exe "C:\CraftMaster\CraftMaster\CraftMaster.py" --config "$env:APPVEYOR_BUILD_FOLDER\appveyor.ini" --variables "APPVEYOR_BUILD_FOLDER=$env:APPVEYOR_BUILD_FOLDER" --target $target -c $args + 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 if($LASTEXITCODE -ne 0) {exit $LASTEXITCODE} } @@ -18,31 +20,24 @@ 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" - - craft $env:TARGET -i craft - craft $env:TARGET --install-deps owncloud-client + craft --add-blueprint-repository [git]https://github.com/nextcloud/desktop-client-blueprints.git + craft craft + craft --install-deps nextcloud-client + craft nsis build_script: - ps: | - craft $env:TARGET --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER owncloud-client - -after_build: -- ps: | - craft $env:TARGET --src-dir $env:APPVEYOR_BUILD_FOLDER --package owncloud-client + craft --src-dir $env:APPVEYOR_BUILD_FOLDER nextcloud-client + craft --package --src-dir $env:APPVEYOR_BUILD_FOLDER nextcloud-client + cp C:\CraftMaster\windows-msvc2019_64-cl\tmp\*.7z $env:APPVEYOR_BUILD_FOLDER + cp C:\CraftMaster\windows-msvc2019_64-cl\tmp\*.exe $env:APPVEYOR_BUILD_FOLDER - -on_finish: -- ps: | - Get-ChildItem $env:USERPROFILE\.craft\* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name } - -test_script: -- ps: | - craft $env:TARGET --src-dir $env:APPVEYOR_BUILD_FOLDER --test owncloud-client +test: off environment: matrix: - TARGET: windows-msvc2019_64-cl - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 artifacts: - - path: binaries/* + - path: '*.7z' + - path: '*.exe' |