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: BinTray
  30. username: maths22
  31. api_key:
  32. secure: 9miH0V65c10cbWfovqIfIHWsbyrg6jZDnaYxyGYHF5pyQbPnS+LcIX6Y/8gK2pM4
  33. subject: supertux
  34. repo: SuperTux-Nightly
  35. package: win32
  36. publish: true
  37. override: true
  38. on:
  39. branch: master
  40. - provider: GitHub
  41. description: 'SuperTux release'
  42. auth_token:
  43. secure: 1sgroG7ycKHC6R2y/V7DECd/SHxXK4CNSDU7zZOnAlyBiVKT9ykvRKWt2DGcEZDq
  44. artifact: setup
  45. draft: true
  46. on:
  47. branch: master # release from master branch only
  48. appveyor_repo_tag: true # deploy on tag push only