File: appveyor.yml

package info (click to toggle)
gammaray 2.9.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 19,704 kB
  • sloc: cpp: 89,250; ansic: 1,185; sh: 141; lex: 93; yacc: 90; xml: 57; makefile: 29
file content (61 lines) | stat: -rw-r--r-- 1,610 bytes parent folder | download
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
59
60
61
version: '{build}-{branch}'

branches:
  # whitelist
  only:
    - master

clone_depth: 50


init:
- ps: |
    function craft() {
        & C:\python36\python.exe "C:\CraftMaster\$env:TARGET\craft\bin\craft.py" $args
        if($LASTEXITCODE -ne 0) {exit $LASTEXITCODE}
    }

install:
- ps: |
    #use cmd to silence powershell behaviour for stderr
    & cmd /C "git clone -q --depth=1 git://anongit.kde.org/craftmaster.git C:\CraftMaster\CraftMaster 2>&1"
    & 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
    craft -p gammaray
    craft --install-deps gammaray

build_script:
- ps: |
    craft --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER gammaray

after_build:
- ps: |
    if ($env:TARGET -eq "windows-msvc2017_64-cl") {
        craft --add-blueprint-repository [git]https://github.com/KDAB/craft-blueprints-kdab.git
        craft gammaray-binary-probes
        craft nsis
    }
    craft --src-dir $env:APPVEYOR_BUILD_FOLDER --package gammaray


on_finish:
- ps: |
    Get-ChildItem $env:USERPROFILE\.craft\* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }

#test_script:
#- ps: |
   #craft --src-dir $env:APPVEYOR_BUILD_FOLDER --test gammaray
test: off

environment:
    matrix:
    - TARGET: windows-msvc2015_32-cl
    - TARGET: windows-mingw_32-gcc
    - TARGET: windows-msvc2017_64-cl
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017

artifacts:
  - path: binaries/*

deploy:
    - provider: Environment
      name: GammaRay