forked from owncloud/client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
58 lines (46 loc) · 1.59 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
version: '{build}-{branch}'
branches:
only:
- master
- 2.6
clone_depth: 50
init:
- ps: |
function craft($target) {
if ($IsWindows){
$py = "py"
} else {
$py = "python3"
}
& $py "$HOME/CraftMaster/CraftMaster.py" --config "$env:APPVEYOR_BUILD_FOLDER/.appveyor.ini" --variables "APPVEYOR_BUILD_FOLDER=$env:APPVEYOR_BUILD_FOLDER" --target $target -c $args
if($LASTEXITCODE -ne 0) {exit $LASTEXITCODE}
}
install:
- ps: |
git submodule update --init --recursive
& git clone -q --depth=1 git://anongit.kde.org/craftmaster.git $HOME/CraftMaster 2>&1
craft $env:TARGET -i craft
craft $env:TARGET --add-blueprint-repository [git]https://github.com/owncloud/craft-blueprints-owncloud.git
craft $env:TARGET --install-deps owncloud-client
build_script:
- ps: |
craft $env:TARGET --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER owncloud-client
test_script:
- ps: |
craft $env:TARGET --src-dir $env:APPVEYOR_BUILD_FOLDER --test owncloud-client
#after_test:
#- ps: |
#if ($IsWindows){
#craft $env:TARGET --src-dir $env:APPVEYOR_BUILD_FOLDER --options [Packager]PackageType=NullsoftInstallerPackager --package owncloud-client
#} else {
#Disable packaging for now
#craft $env:TARGET --src-dir $env:APPVEYOR_BUILD_FOLDER --package owncloud-client
#}
artifacts:
- path: binaries/*
environment:
matrix:
- TARGET: windows-msvc2017_32-cl
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TARGET: windows-msvc2017_64-cl
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017