.appveyor.yml 2.1 KB

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