Codebase list charmtimetracker / 772abe68-ac6b-4249-b1dc-2de6557a25c5/main appveyor.yml
772abe68-ac6b-4249-b1dc-2de6557a25c5/main

Tree @772abe68-ac6b-4249-b1dc-2de6557a25c5/main (Download .tar.gz)

appveyor.yml @772abe68-ac6b-4249-b1dc-2de6557a25c5/mainraw · history · blame

version: '{build}-{branch}'

branches:
  # whitelist
  only:
    - master

# don't enable for charm
#clone_depth: 50


init:
- ps: |
    function craft() {
        & "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 -c $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"
    craft craft
    craft nsis
    craft --install-deps charm

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

after_build:
- ps: |
    craft --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER --package charm

test_script:
- ps: |
    craft --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER --test charm

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: cache\**\.*
  - path: binaries\*

deploy:
    - provider: Environment
      name: GammaRay