appveyor.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. version: '{build}'
  2. os: Visual Studio 2015
  3. configuration: Release
  4. platform: x86
  5. install:
  6. - ps: |
  7. Invoke-WebRequest http://download.supertuxproject.org/builddep/dependencies-win32.zip -OutFile "$env:APPVEYOR_BUILD_FOLDER/dependencies.zip"
  8. Add-Type -assembly "system.io.compression.filesystem"
  9. [io.compression.zipfile]::ExtractToDirectory("$env:APPVEYOR_BUILD_FOLDER/dependencies.zip", "$env:APPVEYOR_BUILD_FOLDER/")
  10. move "$env:APPVEYOR_BUILD_FOLDER/dependencies" "$env:APPVEYOR_BUILD_FOLDER/dependencies32"
  11. before_build:
  12. - cmd: |
  13. git submodule update --init --recursive
  14. echo Running cmake ..
  15. cmake -G "Visual Studio 14 2015" -DCMAKE_INSTALL_PREFIX=%P% -DHAVE_SDL=true -DPACKAGE_VCREDIST=true
  16. build:
  17. project: ALL_BUILD.vcxproj
  18. parallel: true
  19. verbosity: minimal
  20. after_build:
  21. - cmd: '"C:\Program Files (x86)\CMake\bin\cpack.exe"'
  22. - ps: |
  23. Write-Output Get-FileHash SuperTux-*
  24. test: off
  25. artifacts:
  26. - path: SuperTux-*
  27. name: setup
  28. deploy:
  29. - provider: GitHub
  30. description: 'SuperTux release'
  31. auth_token:
  32. secure: 1sgroG7ycKHC6R2y/V7DECd/SHxXK4CNSDU7zZOnAlyBiVKT9ykvRKWt2DGcEZDq
  33. artifact: setup
  34. draft: true
  35. on:
  36. branch: master # release from master branch only
  37. appveyor_repo_tag: true # deploy on tag push only
  38. - provider: BinTray
  39. username: maths22
  40. api_key:
  41. secure: 9miH0V65c10cbWfovqIfIHWsbyrg6jZDnaYxyGYHF5pyQbPnS+LcIX6Y/8gK2pM4
  42. subject: supertux
  43. repo: SuperTux-Nightly
  44. package: win32
  45. publish: true
  46. override: true
  47. on:
  48. branch: master