.appveyor.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. version: 2.0.{build}
  2. image:
  3. - Visual Studio 2015
  4. environment:
  5. matrix:
  6. - solution_name: win32/sdlpal.sln
  7. APPX_OPTIONS:
  8. - solution_name: winrt/SDLPal.UWP.sln
  9. APPX_OPTIONS: /p:AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM";AppxPackageDir="AppPackages"
  10. - solution_name: winrt/SDLPal.Windows.sln
  11. APPX_OPTIONS: /p:AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM";AppxPackageDir="AppPackages"
  12. - solution_name: winrt/SDLPal.WindowsPhone.sln
  13. APPX_OPTIONS: /p:AppxBundle=Always;AppxBundlePlatforms="ARM";AppxPackageDir="AppPackages"
  14. build_script:
  15. - |-
  16. if "%APPVEYOR_REPO_TAG%" == "false" ( set APPX_OPTIONS= )
  17. msbuild /nologo /m %solution_name% /p:Configuration=Release %APPX_OPTIONS%
  18. before_build:
  19. - |-
  20. git submodule update --init --recursive
  21. after_build:
  22. - |-
  23. if exist win32\Win32\Release\sdlpal.exe ( cd win32\Win32\Release & 7z a ..\..\..\sdlpal-win32.zip sdlpal.exe & cd ..\..\..\ )
  24. for /d %%d in ("winrt\SDLPal.UWP\AppPackages\*") do ( cd %%d & del /q *.appxsym & 7z a ..\..\..\..\sdlpal-uwp.zip * & cd ..\..\..\..\ )
  25. for /d %%d in ("winrt\SDLPal.Windows\AppPackages\*") do ( cd %%d & del /q *.appxsym & 7z a ..\..\..\..\sdlpal-ws81.zip * & cd ..\..\..\..\ )
  26. for /d %%d in ("winrt\SDLPal.WindowsPhone\AppPackages\*") do ( cd %%d & del /q *.appxsym & 7z a ..\..\..\..\sdlpal-wp81.zip * & cd ..\..\..\..\ )
  27. deploy:
  28. - provider: GitHub
  29. on:
  30. appveyor_repo_tag: true
  31. auth_token:
  32. secure: RYDRqm5LncsJG32FRSlCkLzkJC4ykCtlgO3+xW4q80wQOA3U9pHAe2beyMEduJIe
  33. artifacts:
  34. - path: sdlpal-win32.zip
  35. name: Win32
  36. - path: sdlpal-uwp.zip
  37. name: UWP
  38. - path: sdlpal-ws81.zip
  39. name: WindowsStore
  40. - path: sdlpal-wp81.zip
  41. name: WindowsPhone
  42. notifications:
  43. - provider: Webhook
  44. url: https://webhooks.gitter.im/e/2accb0e6e37119e604b3
  45. method: POST
  46. on_build_success: true
  47. on_build_failure: true
  48. on_build_status_changed: true