Skip to content

Commit e0cc93c

Browse files
committed
Enable appveyor builds
1 parent 2a14ba5 commit e0cc93c

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed

appveyor.ini

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[General]
2+
Branch = master
3+
ShallowClone = True
4+
Command=craft
5+
6+
# Variables defined here override the default value
7+
# The variable names are casesensitive
8+
[Variables]
9+
#Values need to be overwritten to create a chache
10+
UseCache = True
11+
CreateCache = False
12+
13+
# Settings applicable for all Crafts matrices
14+
# Settings are Category/key=value
15+
# Category is case sensitive
16+
17+
[GeneralSettings]
18+
General/EMERGE_PKGDSTDIR=${Variables:APPVEYOR_BUILD_FOLDER}/binaries
19+
Paths/python = C:\Python36
20+
Paths/python27 = C:\Python27
21+
Paths/downloaddir = ${Variables:Root}\downloads
22+
ShortPath/Enabled = False
23+
ShortPath/EnableJunctions = True
24+
ShortPath/JunctionDir = C:\CM-SP\
25+
Packager/CacheDir = ${Variables:Root}\cache
26+
Packager/UseCache = ${Variables:UseCache}
27+
Packager/CreateCache = ${Variables:CreateCache}
28+
; Packager/RepositoryUrl = https://files.kde.org/craft/
29+
Packager/PackageType = PortablePackager
30+
Packager/RepositoryUrl = http://ftp.acc.umu.se/mirror/kde.org/files/craft/master/
31+
Compile/BuildType = RelWithDebInfo
32+
ContinuousIntegration/Enabled = True
33+
34+
[BlueprintSettings]
35+
# don't try to pip install on the ci
36+
python-modules.ignored = True
37+
38+
libs/qt5.version = 5.9.3
39+
craft/craft-core.version = master
40+
41+
[windows-msvc2017_64-cl]
42+
General/ABI = windows-msvc2017_64-cl
43+
44+
[windows-msvc2017_32-cl]
45+
General/ABI = windows-msvc2017_32-cl

appveyor.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
version: '{build}-{branch}'
2+
3+
branches:
4+
only:
5+
- master
6+
7+
clone_depth: 50
8+
9+
10+
init:
11+
- ps: |
12+
function craft($target) {
13+
& 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
14+
if($LASTEXITCODE -ne 0) {exit $LASTEXITCODE}
15+
}
16+
17+
install:
18+
- ps: |
19+
#use cmd to silence powershell behaviour for stderr
20+
& cmd /C "git clone -q --depth=1 git://anongit.kde.org/craftmaster.git C:\CraftMaster\CraftMaster 2>&1"
21+
22+
craft $env:TARGET -i craft
23+
craft $env:TARGET --install-deps owncloud-client
24+
25+
build_script:
26+
- ps: |
27+
craft $env:TARGET --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER owncloud-client
28+
29+
after_build:
30+
- ps: |
31+
craft $env:TARGET --src-dir $env:APPVEYOR_BUILD_FOLDER --package owncloud-client
32+
33+
34+
on_finish:
35+
- ps: |
36+
Get-ChildItem $env:USERPROFILE\.craft\* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
37+
38+
#test_script:
39+
#- ps: |
40+
#craft $env:TARGET --src-dir $env:APPVEYOR_BUILD_FOLDER --test owncloud-client
41+
test: off
42+
43+
environment:
44+
matrix:
45+
- TARGET: windows-msvc2017_32-cl
46+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
47+
- TARGET: windows-msvc2017_64-cl
48+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
49+
50+
artifacts:
51+
- path: binaries/*

0 commit comments

Comments
 (0)