2015-01-11 23:59:39 +05:30
|
|
|
# shallow clone
|
2016-11-20 01:41:49 +05:30
|
|
|
clone_depth: 10
|
2015-01-11 23:03:44 +05:30
|
|
|
|
2016-08-29 18:49:50 +05:30
|
|
|
cache:
|
|
|
|
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
|
|
|
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
|
|
|
|
2017-05-22 04:26:25 +05:30
|
|
|
os: Visual Studio 2017
|
2016-01-05 04:25:53 +05:30
|
|
|
|
2015-01-15 11:37:18 +05:30
|
|
|
platform:
|
2015-02-08 19:53:33 +05:30
|
|
|
- x64
|
2015-01-15 11:37:18 +05:30
|
|
|
|
|
|
|
configuration:
|
|
|
|
- Release
|
2015-01-11 23:03:44 +05:30
|
|
|
|
|
|
|
install:
|
2015-07-08 00:52:26 +05:30
|
|
|
- git submodule update --init --recursive
|
2015-01-11 23:03:44 +05:30
|
|
|
|
|
|
|
before_build:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2017-07-24 08:38:59 +05:30
|
|
|
- cmake -G "Visual Studio 15 2017 Win64" -DCITRA_USE_BUNDLED_QT=1 -DCITRA_USE_BUNDLED_SDL2=1 -DCMAKE_USE_OPENSSL=0 ..
|
2015-01-11 23:03:44 +05:30
|
|
|
- cd ..
|
2015-01-24 21:15:06 +05:30
|
|
|
|
2016-03-20 20:28:24 +05:30
|
|
|
build:
|
|
|
|
project: build/citra.sln
|
|
|
|
parallel: true
|
|
|
|
|
2016-11-20 01:41:49 +05:30
|
|
|
after_build:
|
|
|
|
- ps: |
|
|
|
|
$GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
|
|
|
|
$GITREV = $(git show -s --format='%h')
|
2017-01-01 10:08:15 +05:30
|
|
|
$GIT_LONG_HASH = $(git rev-parse HEAD)
|
2016-11-20 01:41:49 +05:30
|
|
|
# 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 " ", ""
|
2017-07-27 09:59:33 +05:30
|
|
|
$MSVC_SEVENZIP = "citra-windows-msvc-$GITDATE-$GITREV.7z" -replace " ", ""
|
2017-01-01 10:08:15 +05:30
|
|
|
$BINTRAY_VERSION = "nightly-$GIT_LONG_HASH" -replace " ", ""
|
2016-09-01 19:09:20 +05:30
|
|
|
|
2016-11-20 01:41:49 +05:30
|
|
|
# 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
|
2017-07-27 09:59:33 +05:30
|
|
|
$env:MSVC_SEVENZIP = $MSVC_SEVENZIP
|
2017-01-05 09:59:27 +05:30
|
|
|
$env:GITREV = $GITREV
|
2016-09-01 19:09:20 +05:30
|
|
|
|
2016-11-20 01:41:49 +05:30
|
|
|
7z a -tzip $MSVC_BUILD_PDB .\build\bin\release\*.pdb
|
|
|
|
rm .\build\bin\release\*.pdb
|
2017-07-27 09:59:33 +05:30
|
|
|
|
2017-08-10 09:47:27 +05:30
|
|
|
# Find out which kind of release we are producing by tag name
|
|
|
|
if ($env:APPVEYOR_REPO_TAG_NAME) {
|
|
|
|
$RELEASE_DIST, $RELEASE_VERSION = $env:APPVEYOR_REPO_TAG_NAME.split('-')
|
|
|
|
} else {
|
|
|
|
# There is no repo tag - make assumptions
|
|
|
|
$RELEASE_DIST = "head"
|
|
|
|
}
|
2017-07-27 09:59:33 +05:30
|
|
|
|
2017-08-10 09:47:27 +05:30
|
|
|
mkdir $RELEASE_DIST
|
|
|
|
Copy-Item .\build\bin\release\* -Destination $RELEASE_DIST -Recurse
|
|
|
|
Copy-Item .\license.txt -Destination $RELEASE_DIST
|
|
|
|
Copy-Item .\README.md -Destination $RELEASE_DIST
|
|
|
|
|
|
|
|
7z a -tzip $MSVC_BUILD_NAME $RELEASE_DIST\*
|
|
|
|
7z a $MSVC_SEVENZIP $RELEASE_DIST
|
2016-09-01 22:17:31 +05:30
|
|
|
|
2016-11-20 01:41:49 +05:30
|
|
|
test_script:
|
|
|
|
- cd build && ctest -VV -C Release && cd ..
|
2015-05-26 00:04:09 +05:30
|
|
|
|
2016-11-20 01:41:49 +05:30
|
|
|
artifacts:
|
|
|
|
- path: $(MSVC_BUILD_NAME)
|
|
|
|
name: msvcbuild
|
|
|
|
type: zip
|
|
|
|
- path: $(MSVC_BUILD_PDB)
|
|
|
|
name: msvcdebug
|
|
|
|
type: zip
|
2017-07-27 09:59:33 +05:30
|
|
|
- path: $(MSVC_SEVENZIP)
|
|
|
|
name: msvcupdate
|
2015-05-26 00:04:09 +05:30
|
|
|
|
2016-11-20 01:41:49 +05:30
|
|
|
deploy:
|
2017-01-05 09:09:59 +05:30
|
|
|
provider: GitHub
|
2017-08-03 11:21:48 +05:30
|
|
|
release: $(appveyor_repo_tag_name)
|
2017-01-05 09:09:59 +05:30
|
|
|
auth_token:
|
|
|
|
secure: "dbpsMC/MgPKWFNJCXpQl4cR8FYhepkPLjgNp/pRMktZ8oLKTqPYErfreaIxb/4P1"
|
2017-07-27 09:59:33 +05:30
|
|
|
artifact: msvcupdate,msvcbuild
|
2017-01-05 09:09:59 +05:30
|
|
|
draft: false
|
|
|
|
prerelease: false
|
2016-11-20 01:41:49 +05:30
|
|
|
on:
|
2017-08-03 11:21:48 +05:30
|
|
|
appveyor_repo_tag: true
|