.appveyor.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.WindowsPhone.sln
  28. APPX_OPTIONS: /p:AppxBundle=Always;AppxBundlePlatforms="ARM";AppxPackageDir="AppPackages"
  29. build_script:
  30. - |-
  31. if "%APPVEYOR_REPO_TAG%" == "false" ( set APPX_OPTIONS= )
  32. msbuild /nologo /m %solution_name% /p:Configuration=Release %APPX_OPTIONS%
  33. before_build:
  34. - |-
  35. git submodule update --init --recursive
  36. after_build:
  37. - |-
  38. if exist win32\Win32\Release\sdlpal.exe ( cd win32\Win32\Release & 7z a ..\..\..\sdlpal-win32.zip sdlpal.exe & cd ..\..\..\ )
  39. for /d %%d in ("winrt\SDLPal.UWP\AppPackages\*") do ( cd %%d & del /q *.appxsym & 7z a ..\..\..\..\sdlpal-uwp.zip * & cd ..\..\..\..\ )
  40. for /d %%d in ("winrt\SDLPal.WindowsPhone\AppPackages\*") do ( cd %%d & del /q *.appxsym & 7z a ..\..\..\..\sdlpal-wp81.zip * & cd ..\..\..\..\ )
  41. deploy:
  42. - provider: GitHub
  43. on:
  44. appveyor_repo_tag: true
  45. auth_token:
  46. secure: RYDRqm5LncsJG32FRSlCkLzkJC4ykCtlgO3+xW4q80wQOA3U9pHAe2beyMEduJIe
  47. artifacts:
  48. - path: sdlpal-win32.zip
  49. name: Win32
  50. - path: sdlpal-uwp.zip
  51. name: UWP
  52. - path: sdlpal-wp81.zip
  53. name: WindowsPhone
  54. notifications:
  55. - provider: Webhook
  56. url: https://webhooks.gitter.im/e/2accb0e6e37119e604b3
  57. method: POST
  58. on_build_success: true
  59. on_build_failure: true
  60. on_build_status_changed: true