appveyor.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. version: '{build}-{branch}'
  2. branches:
  3. only:
  4. - master
  5. clone_depth: 50
  6. init:
  7. - ps: |
  8. function craft($target) {
  9. & 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
  10. if($LASTEXITCODE -ne 0) {exit $LASTEXITCODE}
  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. craft $env:TARGET -i craft
  17. craft $env:TARGET --install-deps owncloud-client
  18. build_script:
  19. - ps: |
  20. craft $env:TARGET --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER owncloud-client
  21. after_build:
  22. - ps: |
  23. craft $env:TARGET --src-dir $env:APPVEYOR_BUILD_FOLDER --package owncloud-client
  24. on_finish:
  25. - ps: |
  26. Get-ChildItem $env:USERPROFILE\.craft\* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
  27. test_script:
  28. - ps: |
  29. craft $env:TARGET --src-dir $env:APPVEYOR_BUILD_FOLDER --test owncloud-client
  30. environment:
  31. matrix:
  32. - TARGET: windows-msvc2017_32-cl
  33. APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  34. - TARGET: windows-msvc2017_64-cl
  35. APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  36. artifacts:
  37. - path: binaries/*