appveyor.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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_PDB = "citra-${GITDATE}-${GITREV}-windows-amd64-debugsymbols.7z" -replace " ",""
  36. $BUILD_NAME_NOQT = "citra-noqt-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ",""
  37. # Remove unnecessary files
  38. rm .\build\bin\release\*tests*
  39. # Put the pdb files in a separate archive and remove them from the main download
  40. 7z a $BUILD_NAME_PDB .\build\bin\release\*.pdb
  41. rm .\build\bin\release\*.pdb
  42. # Zip up the build folder and documentation
  43. 7z a $BUILD_NAME .\build\bin\release\* .\license.txt .\README.md
  44. # Do a second archive with only the binaries (excludes dlls) and documentation
  45. 7z a $BUILD_NAME_NOQT .\build\bin\release\*.exe .\license.txt .\README.md
  46. # Download WinSCP and upload to server
  47. choco install winscp.portable
  48. WinSCP.exe /command `
  49. "option batch abort" `
  50. "option confirm off" `
  51. "open sftp://citra-builds:${env:BUILD_PASSWORD}@builds.citra-emu.org -hostkey=*" `
  52. "put $BUILD_NAME /citra/nightly/windows-amd64/" `
  53. "put $BUILD_NAME_NOQT /citra/nightly/windows-noqt-amd64/" `
  54. "put $BUILD_NAME_PDB /citra/nightly/windows-amd64-debugsymbols/" `
  55. "exit"
  56. }