diff options
| author | 2016-12-31 22:16:44 -0500 | |
|---|---|---|
| committer | 2016-12-31 22:16:44 -0500 | |
| commit | bb396ed8fcc66afd2a70943cbd2a152328dbe0a8 (patch) | |
| tree | c7d362d9fd0e43fc39460b8aed493621f71fd33d /appveyor.yml | |
| parent | Merge pull request #2386 from bunnei/fix-bg-color (diff) | |
| parent | Trying to make a consistent nightly versioning (diff) | |
| download | yuzu-bb396ed8fcc66afd2a70943cbd2a152328dbe0a8.tar.gz yuzu-bb396ed8fcc66afd2a70943cbd2a152328dbe0a8.tar.xz yuzu-bb396ed8fcc66afd2a70943cbd2a152328dbe0a8.zip | |
Merge pull request #2254 from jroweboy/bintray
Add deploy to bintray for builds to master
Diffstat (limited to 'appveyor.yml')
| -rw-r--r-- | appveyor.yml | 77 |
1 files changed, 39 insertions, 38 deletions
diff --git a/appveyor.yml b/appveyor.yml index 0ffb680ff..8a4d1b0da 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
| @@ -1,9 +1,8 @@ | |||
| 1 | # shallow clone | 1 | # shallow clone |
| 2 | clone_depth: 5 | 2 | clone_depth: 10 |
| 3 | 3 | ||
| 4 | environment: | 4 | # don't build on tag |
| 5 | BUILD_PASSWORD: | 5 | skip_tags: true |
| 6 | secure: EXGNlWKJsCtbeImEJ5EP9qrxZ+EqUFfNy+CP61nDOMA= | ||
| 7 | 6 | ||
| 8 | cache: | 7 | cache: |
| 9 | - C:\ProgramData\chocolatey\bin -> appveyor.yml | 8 | - C:\ProgramData\chocolatey\bin -> appveyor.yml |
| @@ -30,42 +29,44 @@ build: | |||
| 30 | project: build/citra.sln | 29 | project: build/citra.sln |
| 31 | parallel: true | 30 | parallel: true |
| 32 | 31 | ||
| 33 | test_script: | 32 | after_build: |
| 34 | - cd build && ctest -VV -C Release && cd .. | 33 | - ps: | |
| 35 | 34 | $GITDATE = $(git show -s --date=short --format='%ad') -replace "-","" | |
| 36 | on_success: | 35 | $GITREV = $(git show -s --format='%h') |
| 37 | # copying the needed QT Dlls is now done post build. See the CMakeLists.txt file in the citra-qt folder | 36 | # Where are these spaces coming from? Regardless, let's remove them |
| 38 | - ps: > | 37 | $MSVC_BUILD_NAME = "citra-windows-msvc-$GITDATE-$GITREV.zip" -replace " ", "" |
| 39 | if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master")) | 38 | $MSVC_BUILD_PDB = "citra-windows-msvc-$GITDATE-$GITREV-debugsymbols.zip" -replace " ", "" |
| 40 | { | 39 | $BINTRAY_VERSION = "nightly-$GITREV" -replace " ", "" |
| 41 | $GITDATE = $(git show -s --date=short --format='%ad') -replace "-","" | ||
| 42 | $GITREV = $(git show -s --format='%h') | ||
| 43 | # Where are these spaces coming from? Regardless, let's remove them | ||
| 44 | $BUILD_NAME = "citra-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ","" | ||
| 45 | $BUILD_NAME_PDB = "citra-${GITDATE}-${GITREV}-windows-amd64-debugsymbols.7z" -replace " ","" | ||
| 46 | $BUILD_NAME_NOQT = "citra-noqt-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ","" | ||
| 47 | 40 | ||
| 48 | # Remove unnecessary files | 41 | # set the build names as env vars so the artifacts can upload them |
| 49 | rm .\build\bin\release\*tests* | 42 | $env:MSVC_BUILD_NAME = $MSVC_BUILD_NAME |
| 43 | $env:MSVC_BUILD_PDB = $MSVC_BUILD_PDB | ||
| 44 | $env:BINTRAY_VERSION = $BINTRAY_VERSION | ||
| 50 | 45 | ||
| 51 | # Put the pdb files in a separate archive and remove them from the main download | 46 | 7z a -tzip $MSVC_BUILD_PDB .\build\bin\release\*.pdb |
| 52 | 7z a $BUILD_NAME_PDB .\build\bin\release\*.pdb | 47 | rm .\build\bin\release\*.pdb |
| 53 | rm .\build\bin\release\*.pdb | 48 | 7z a -tzip $MSVC_BUILD_NAME .\build\bin\release\* .\license.txt .\README.md |
| 54 | 49 | ||
| 55 | # Zip up the build folder and documentation | 50 | test_script: |
| 56 | 7z a $BUILD_NAME .\build\bin\release\* .\license.txt .\README.md | 51 | - cd build && ctest -VV -C Release && cd .. |
| 57 | # Do a second archive with only the binaries (excludes dlls) and documentation | ||
| 58 | 7z a $BUILD_NAME_NOQT .\build\bin\release\*.exe .\license.txt .\README.md | ||
| 59 | 52 | ||
| 53 | artifacts: | ||
| 54 | - path: $(MSVC_BUILD_NAME) | ||
| 55 | name: msvcbuild | ||
| 56 | type: zip | ||
| 57 | - path: $(MSVC_BUILD_PDB) | ||
| 58 | name: msvcdebug | ||
| 59 | type: zip | ||
| 60 | 60 | ||
| 61 | # Download WinSCP and upload to server | 61 | deploy: |
| 62 | choco install winscp.portable | 62 | - provider: BinTray |
| 63 | WinSCP.exe /command ` | 63 | username: citra-emu |
| 64 | "option batch abort" ` | 64 | api_key: |
| 65 | "option confirm off" ` | 65 | secure: qaZZfXp5Vv9xw5EmCxKLhGnNYhiNMDCdP84l0+h6HetfmvFlvHxyohWEVokLjl7d |
| 66 | "open sftp://citra-builds:${env:BUILD_PASSWORD}@builds.citra-emu.org -hostkey=*" ` | 66 | subject: citra-emu |
| 67 | "put $BUILD_NAME /citra/nightly/windows-amd64/" ` | 67 | repo: citra |
| 68 | "put $BUILD_NAME_NOQT /citra/nightly/windows-noqt-amd64/" ` | 68 | package: nightly |
| 69 | "put $BUILD_NAME_PDB /citra/nightly/windows-amd64-debugsymbols/" ` | 69 | version: $(BINTRAY_VERSION) |
| 70 | "exit" | 70 | publish: true |
| 71 | } | 71 | on: |
| 72 | branch: master | ||