.appveyor.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 "%APPVEYOR_REPO_TAG%" == "true" ( for /d %%d in ("%APPVEYOR_BUILD_FOLDER%\winrt\SDLPal.*") do ( for /d %%c in ("%%d\AppPackages\*") do ( ren "%%c" SDLPal ) ) )
  24. if exist win32\Win32\Release\sdlpal.exe ( 7z a sdlpal-win32.zip win32\Win32\Release\sdlpal.exe )
  25. deploy:
  26. - provider: GitHub
  27. on:
  28. appveyor_repo_tag: true
  29. auth_token:
  30. secure: RYDRqm5LncsJG32FRSlCkLzkJC4ykCtlgO3+xW4q80wQOA3U9pHAe2beyMEduJIe
  31. artifacts:
  32. - path: sdlpal-win32.zip
  33. name: Win32
  34. - path: winrt/SDLPal.UWP/AppPackages/SDLPal
  35. name: sdlpal-uwp
  36. type: zip
  37. - path: winrt/SDLPal.Windows/AppPackages/SDLPal
  38. name: sdlpal-ws81
  39. type: zip
  40. - path: winrt/SDLPal.WindowsPhone/AppPackages/SDLPal
  41. name: sdlpal-wp81
  42. type: zip
  43. notifications:
  44. - provider: Webhook
  45. url: https://webhooks.gitter.im/e/2accb0e6e37119e604b3
  46. method: POST
  47. on_build_success: true
  48. on_build_failure: true
  49. on_build_status_changed: true