appveyor.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version: '{build}-{branch}'
  2. image: Visual Studio 2019
  3. branches:
  4. only:
  5. - master
  6. clone_depth: 1
  7. init:
  8. - ps: |
  9. function craft() {
  10. cmd /C "echo %PATH%"
  11. & "C:\Python39-x64\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
  12. if($LASTEXITCODE -ne 0) {exit $LASTEXITCODE}
  13. }
  14. function crafttests() {
  15. cmd /C "echo %PATH%"
  16. & "C:\Python39-x64\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
  17. }
  18. install:
  19. - ps: |
  20. #use cmd to silence powershell behaviour for stderr
  21. & cmd /C "git clone -q --depth=1 https://invent.kde.org/packaging/craftmaster.git C:\CraftMaster\CraftMaster 2>&1"
  22. craft --add-blueprint-repository [git]https://github.com/nextcloud/desktop-client-blueprints.git
  23. craft craft
  24. craft --install-deps nextcloud-client
  25. craft nsis
  26. build_script:
  27. - ps: |
  28. craft --src-dir $env:APPVEYOR_BUILD_FOLDER nextcloud-client
  29. test_script:
  30. - ps: |
  31. crafttests --test --src-dir $env:APPVEYOR_BUILD_FOLDER nextcloud-client
  32. environment:
  33. matrix:
  34. - TARGET: windows-msvc2019_64-cl