From 360118634dcbb8dbae8803338cdf1a20912e6995 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Fri, 14 May 2021 16:34:05 +0200 Subject: build the nextcloud client and not something else Signed-off-by: Matthieu Gallien --- appveyor.yml | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) (limited to 'appveyor.yml') 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' -- cgit v1.2.3