diff options
author | James Rowe <jroweboy@gmail.com> | 2016-11-19 21:11:49 +0100 |
---|---|---|
committer | James Rowe <jroweboy@gmail.com> | 2016-12-31 19:54:51 +0100 |
commit | b03e7bf28f75636a4f69176c91911687c755b483 (patch) | |
tree | a33bdab6a5a096ea66cc8ce74d2863396f575dc2 /appveyor.yml | |
parent | Merge pull request #2386 from bunnei/fix-bg-color (diff) | |
download | yuzu-b03e7bf28f75636a4f69176c91911687c755b483.tar yuzu-b03e7bf28f75636a4f69176c91911687c755b483.tar.gz yuzu-b03e7bf28f75636a4f69176c91911687c755b483.tar.bz2 yuzu-b03e7bf28f75636a4f69176c91911687c755b483.tar.lz yuzu-b03e7bf28f75636a4f69176c91911687c755b483.tar.xz yuzu-b03e7bf28f75636a4f69176c91911687c755b483.tar.zst yuzu-b03e7bf28f75636a4f69176c91911687c755b483.zip |
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 75 |
1 files changed, 37 insertions, 38 deletions
diff --git a/appveyor.yml b/appveyor.yml index 0ffb680ff..76362bcf2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,9 +1,8 @@ # shallow clone -clone_depth: 5 +clone_depth: 10 -environment: - BUILD_PASSWORD: - secure: EXGNlWKJsCtbeImEJ5EP9qrxZ+EqUFfNy+CP61nDOMA= +# don't build on tag +skip_tags: true cache: - C:\ProgramData\chocolatey\bin -> appveyor.yml @@ -30,42 +29,42 @@ build: project: build/citra.sln parallel: true -test_script: - - cd build && ctest -VV -C Release && cd .. - -on_success: - # copying the needed QT Dlls is now done post build. See the CMakeLists.txt file in the citra-qt folder - - ps: > - if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master")) - { - $GITDATE = $(git show -s --date=short --format='%ad') -replace "-","" - $GITREV = $(git show -s --format='%h') - # Where are these spaces coming from? Regardless, let's remove them - $BUILD_NAME = "citra-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ","" - $BUILD_NAME_PDB = "citra-${GITDATE}-${GITREV}-windows-amd64-debugsymbols.7z" -replace " ","" - $BUILD_NAME_NOQT = "citra-noqt-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ","" +after_build: + - ps: | + $GITDATE = $(git show -s --date=short --format='%ad') -replace "-","" + $GITREV = $(git show -s --format='%h') + # Where are these spaces coming from? Regardless, let's remove them + $MSVC_BUILD_NAME = "citra-windows-msvc-$GITDATE-$GITREV.zip" -replace " ", "" + $MSVC_BUILD_PDB = "citra-windows-msvc-$GITDATE-$GITREV-debugsymbols.zip" -replace " ", "" - # Remove unnecessary files - rm .\build\bin\release\*tests* + # set the build names as env vars so the artifacts can upload them + $env:MSVC_BUILD_NAME = $MSVC_BUILD_NAME + $env:MSVC_BUILD_PDB = $MSVC_BUILD_PDB - # Put the pdb files in a separate archive and remove them from the main download - 7z a $BUILD_NAME_PDB .\build\bin\release\*.pdb - rm .\build\bin\release\*.pdb + 7z a -tzip $MSVC_BUILD_PDB .\build\bin\release\*.pdb + rm .\build\bin\release\*.pdb + 7z a -tzip $MSVC_BUILD_NAME .\build\bin\release\* .\license.txt .\README.md - # Zip up the build folder and documentation - 7z a $BUILD_NAME .\build\bin\release\* .\license.txt .\README.md - # Do a second archive with only the binaries (excludes dlls) and documentation - 7z a $BUILD_NAME_NOQT .\build\bin\release\*.exe .\license.txt .\README.md +test_script: + - cd build && ctest -VV -C Release && cd .. +artifacts: + - path: $(MSVC_BUILD_NAME) + name: msvcbuild + type: zip + - path: $(MSVC_BUILD_PDB) + name: msvcdebug + type: zip - # Download WinSCP and upload to server - choco install winscp.portable - WinSCP.exe /command ` - "option batch abort" ` - "option confirm off" ` - "open sftp://citra-builds:${env:BUILD_PASSWORD}@builds.citra-emu.org -hostkey=*" ` - "put $BUILD_NAME /citra/nightly/windows-amd64/" ` - "put $BUILD_NAME_NOQT /citra/nightly/windows-noqt-amd64/" ` - "put $BUILD_NAME_PDB /citra/nightly/windows-amd64-debugsymbols/" ` - "exit" - } +deploy: +- provider: BinTray + username: citra-emu + api_key: + secure: qaZZfXp5Vv9xw5EmCxKLhGnNYhiNMDCdP84l0+h6HetfmvFlvHxyohWEVokLjl7d + subject: citra-emu + repo: citra + package: nightly + version: nightly + publish: true + on: + branch: master |