appveyor.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # it seems that Qt is only installed by default on unstable os at the moment
  2. os: unstable
  3. # shallow clone
  4. clone_depth: 5
  5. environment:
  6. QTDIR: C:\Qt\5.4\msvc2013_64_opengl
  7. BUILD_PASSWORD:
  8. secure: EXGNlWKJsCtbeImEJ5EP9qrxZ+EqUFfNy+CP61nDOMA=
  9. platform:
  10. - x64
  11. configuration:
  12. - Release
  13. install:
  14. - git submodule update --init --recursive --depth 20
  15. before_build:
  16. - mkdir build
  17. - cd build
  18. - cmake -G "Visual Studio 12 Win64" ..
  19. - cd ..
  20. after_build:
  21. # copying the needed QT Dlls is now done post build. See the CMakeLists.txt file in the citra-qt folder
  22. - ps: >
  23. if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master"))
  24. {
  25. $GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
  26. $GITREV = $(git show -s --format='%h')
  27. # Where are these spaces coming from? Regardless, let's remove them
  28. $BUILD_NAME = "citra-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ",""
  29. # Zip up the build folder
  30. 7z a $BUILD_NAME .\build\bin\release\*
  31. # Download winscp
  32. Invoke-WebRequest "http://hivelocity.dl.sourceforge.net/project/winscp/WinSCP/5.7/winscp570.zip" -OutFile "winscp570.zip"
  33. 7z e -y winscp570.zip
  34. # Upload to server
  35. .\WinSCP.com /command `
  36. "option batch abort" `
  37. "option confirm off" `
  38. "open sftp://citra-builds:${env:BUILD_PASSWORD}@builds.citra-emu.org -hostkey=*" `
  39. "put $BUILD_NAME /citra/nightly/windows-amd64/" `
  40. "exit"
  41. }