X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=.appveyor.yml;fp=.appveyor.yml;h=0e6a54f09a70cbc5ec5f9f52c275f25301618e44;hp=0000000000000000000000000000000000000000;hb=564126810aaf834bac66c8f7718d99f159185ce6;hpb=c95649029bee1418b77ea2028f06b850759c7423 diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 00000000..0e6a54f0 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,38 @@ +version: '{build}' + +image: Visual Studio 2017 + +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 --target $env:TARGET + craft --add-blueprint-repository https://github.com/quassel/craft-blueprints-quassel.git + craft -p quassel/quassel + craft nsis + craft --install-deps quassel/quassel + +build_script: +- ps: | + craft --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER quassel/quassel + +test_script: +- ps: | + craft --src-dir $env:APPVEYOR_BUILD_FOLDER --test quassel/quassel + +on_success: +- ps: | + craft --src-dir $env:APPVEYOR_BUILD_FOLDER --package quassel/quassel + Get-ChildItem C:\CraftMaster\$env:TARGET\tmp\* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name } + +environment: + matrix: + - TARGET: windows-msvc2017_64-cl + - TARGET: windows-msvc2017_32-cl