appveyor.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # shallow clone
  2. clone_depth: 5
  3. environment:
  4. BUILD_PASSWORD:
  5. secure: EXGNlWKJsCtbeImEJ5EP9qrxZ+EqUFfNy+CP61nDOMA=
  6. cache:
  7. - C:\ProgramData\chocolatey\bin -> appveyor.yml
  8. - C:\ProgramData\chocolatey\lib -> appveyor.yml
  9. os: Visual Studio 2015
  10. platform:
  11. - x64
  12. configuration:
  13. - Release
  14. install:
  15. - git submodule update --init --recursive
  16. before_build:
  17. - mkdir build
  18. - cd build
  19. - cmake -G "Visual Studio 14 2015 Win64" -DCITRA_USE_BUNDLED_QT=1 -DCITRA_USE_BUNDLED_SDL2=1 ..
  20. - cd ..
  21. build:
  22. project: build/citra.sln
  23. parallel: true
  24. test_script:
  25. - cd build && ctest -VV -C Release && cd ..
  26. on_success:
  27. # copying the needed QT Dlls is now done post build. See the CMakeLists.txt file in the citra-qt folder
  28. - ps: >
  29. if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master"))
  30. {
  31. $GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
  32. $GITREV = $(git show -s --format='%h')
  33. # Where are these spaces coming from? Regardless, let's remove them
  34. $BUILD_NAME = "citra-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ",""
  35. $BUILD_NAME_NOQT = "citra-noqt-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ",""
  36. # Zip up the build folder and documentation
  37. 7z a $BUILD_NAME .\build\bin\release\* .\license.txt .\README.md
  38. # Do a second archive with only the binaries (excludes dlls) and documentation
  39. 7z a $BUILD_NAME_NOQT .\build\bin\release\*.exe .\license.txt .\README.md
  40. # Download WinSCP and upload to server
  41. choco install winscp.portable
  42. WinSCP.exe /command `
  43. "option batch abort" `
  44. "option confirm off" `
  45. "open sftp://citra-builds:${env:BUILD_PASSWORD}@builds.citra-emu.org -hostkey=*" `
  46. "put $BUILD_NAME /citra/nightly/windows-amd64/" `
  47. "put $BUILD_NAME_NOQT /citra/nightly/windows-noqt-amd64/" `
  48. "exit"
  49. }