funchelpers: Add a way to invoke a callable with a list of arguments
[quassel.git] / .appveyor.yml
1 version: '{build}'
2
3 image: Visual Studio 2017
4
5 init:
6 - ps: |
7     function craft() {
8         & C:\python36\python.exe "C:\CraftMaster\$env:TARGET\craft\bin\craft.py" $args
9         if($LASTEXITCODE -ne 0) {exit $LASTEXITCODE}
10     }
11
12 install:
13 - ps: |
14     #use cmd to silence powershell behaviour for stderr
15     & cmd /C "git clone -q --depth=1 git://anongit.kde.org/craftmaster.git C:\CraftMaster\CraftMaster 2>&1"
16     & 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 $env:TARGET
17     craft --add-blueprint-repository https://github.com/quassel/craft-blueprints-quassel.git
18     craft -p quassel/quassel
19     craft nsis
20     craft --install-deps quassel/quassel
21
22 build_script:
23 - ps: |
24     craft --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER quassel/quassel
25
26 after_build:
27 - ps: |
28     craft --src-dir $env:APPVEYOR_BUILD_FOLDER --package quassel/quassel
29
30 test_script:
31 - ps: |
32     craft --src-dir $env:APPVEYOR_BUILD_FOLDER --test quassel/quassel
33
34 environment:
35     matrix:
36     - TARGET: windows-msvc2017_64-cl
37     - TARGET: windows-msvc2017_32-cl
38
39 artifacts:
40   - path: binaries\*