|
|
@ -1,9 +1,8 @@
|
|
|
|
# shallow clone
|
|
|
|
# shallow clone
|
|
|
|
clone_depth: 5
|
|
|
|
clone_depth: 10
|
|
|
|
|
|
|
|
|
|
|
|
environment:
|
|
|
|
# don't build on tag
|
|
|
|
BUILD_PASSWORD:
|
|
|
|
skip_tags: true
|
|
|
|
secure: EXGNlWKJsCtbeImEJ5EP9qrxZ+EqUFfNy+CP61nDOMA=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cache:
|
|
|
|
cache:
|
|
|
|
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
|
|
|
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
|
|
@ -30,42 +29,42 @@ build:
|
|
|
|
project: build/citra.sln
|
|
|
|
project: build/citra.sln
|
|
|
|
parallel: true
|
|
|
|
parallel: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 " ", ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
test_script:
|
|
|
|
- cd build && ctest -VV -C Release && cd ..
|
|
|
|
- cd build && ctest -VV -C Release && cd ..
|
|
|
|
|
|
|
|
|
|
|
|
on_success:
|
|
|
|
artifacts:
|
|
|
|
# copying the needed QT Dlls is now done post build. See the CMakeLists.txt file in the citra-qt folder
|
|
|
|
- path: $(MSVC_BUILD_NAME)
|
|
|
|
- ps: >
|
|
|
|
name: msvcbuild
|
|
|
|
if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master"))
|
|
|
|
type: zip
|
|
|
|
{
|
|
|
|
- path: $(MSVC_BUILD_PDB)
|
|
|
|
$GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
|
|
|
|
name: msvcdebug
|
|
|
|
$GITREV = $(git show -s --format='%h')
|
|
|
|
type: zip
|
|
|
|
# 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 " ",""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove unnecessary files
|
|
|
|
deploy:
|
|
|
|
rm .\build\bin\release\*tests*
|
|
|
|
- provider: BinTray
|
|
|
|
|
|
|
|
username: citra-emu
|
|
|
|
# Put the pdb files in a separate archive and remove them from the main download
|
|
|
|
api_key:
|
|
|
|
7z a $BUILD_NAME_PDB .\build\bin\release\*.pdb
|
|
|
|
secure: qaZZfXp5Vv9xw5EmCxKLhGnNYhiNMDCdP84l0+h6HetfmvFlvHxyohWEVokLjl7d
|
|
|
|
rm .\build\bin\release\*.pdb
|
|
|
|
subject: citra-emu
|
|
|
|
|
|
|
|
repo: citra
|
|
|
|
# Zip up the build folder and documentation
|
|
|
|
package: nightly
|
|
|
|
7z a $BUILD_NAME .\build\bin\release\* .\license.txt .\README.md
|
|
|
|
version: nightly
|
|
|
|
# Do a second archive with only the binaries (excludes dlls) and documentation
|
|
|
|
publish: true
|
|
|
|
7z a $BUILD_NAME_NOQT .\build\bin\release\*.exe .\license.txt .\README.md
|
|
|
|
on:
|
|
|
|
|
|
|
|
branch: master
|
|
|
|
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|