2015-01-11 12:29:39 -06:00
|
|
|
# shallow clone
|
2016-11-19 14:11:49 -06:00
|
|
|
clone_depth: 10
|
2015-01-11 11:33:44 -06:00
|
|
|
|
2016-08-29 08:19:50 -05:00
|
|
|
cache:
|
|
|
|
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
|
|
|
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
|
|
|
|
2017-05-21 17:56:25 -05:00
|
|
|
os: Visual Studio 2017
|
2016-01-04 16:55:53 -06:00
|
|
|
|
2015-01-15 00:07:18 -06:00
|
|
|
platform:
|
2015-02-08 08:23:33 -06:00
|
|
|
- x64
|
2015-01-15 00:07:18 -06:00
|
|
|
|
|
|
|
configuration:
|
|
|
|
- Release
|
2015-01-11 11:33:44 -06:00
|
|
|
|
|
|
|
install:
|
2015-07-07 14:22:26 -05:00
|
|
|
- git submodule update --init --recursive
|
2015-01-11 11:33:44 -06:00
|
|
|
|
|
|
|
before_build:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2017-07-23 22:08:59 -05:00
|
|
|
- cmake -G "Visual Studio 15 2017 Win64" -DCITRA_USE_BUNDLED_QT=1 -DCITRA_USE_BUNDLED_SDL2=1 -DCMAKE_USE_OPENSSL=0 ..
|
2015-01-11 11:33:44 -06:00
|
|
|
- cd ..
|
2015-01-24 09:45:06 -06:00
|
|
|
|
2016-03-20 09:58:24 -05:00
|
|
|
build:
|
|
|
|
project: build/citra.sln
|
|
|
|
parallel: true
|
|
|
|
|
2016-11-19 14:11:49 -06:00
|
|
|
after_build:
|
|
|
|
- ps: |
|
|
|
|
$GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
|
|
|
|
$GITREV = $(git show -s --format='%h')
|
2016-12-31 22:38:15 -06:00
|
|
|
$GIT_LONG_HASH = $(git rev-parse HEAD)
|
2016-11-19 14:11:49 -06:00
|
|
|
# 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-26 23:29:33 -05:00
|
|
|
$MSVC_SEVENZIP = "citra-windows-msvc-$GITDATE-$GITREV.7z" -replace " ", ""
|
2016-12-31 22:38:15 -06:00
|
|
|
$BINTRAY_VERSION = "nightly-$GIT_LONG_HASH" -replace " ", ""
|
2016-09-01 08:39:20 -05:00
|
|
|
|
2016-11-19 14:11:49 -06:00
|
|
|
# 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-26 23:29:33 -05:00
|
|
|
$env:MSVC_SEVENZIP = $MSVC_SEVENZIP
|
2017-01-04 22:29:27 -06:00
|
|
|
$env:GITREV = $GITREV
|
2016-09-01 08:39:20 -05:00
|
|
|
|
2016-11-19 14:11:49 -06:00
|
|
|
7z a -tzip $MSVC_BUILD_PDB .\build\bin\release\*.pdb
|
|
|
|
rm .\build\bin\release\*.pdb
|
2017-07-26 23:29:33 -05:00
|
|
|
|
2017-08-09 23:17:27 -05:00
|
|
|
# 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-26 23:29:33 -05:00
|
|
|
|
2017-08-09 23:17:27 -05:00
|
|
|
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 11:47:31 -05:00
|
|
|
|
2016-11-19 14:11:49 -06:00
|
|
|
test_script:
|
|
|
|
- cd build && ctest -VV -C Release && cd ..
|
2015-05-25 13:34:09 -05:00
|
|
|
|
2016-11-19 14:11:49 -06:00
|
|
|
artifacts:
|
|
|
|
- path: $(MSVC_BUILD_NAME)
|
|
|
|
name: msvcbuild
|
|
|
|
type: zip
|
|
|
|
- path: $(MSVC_BUILD_PDB)
|
|
|
|
name: msvcdebug
|
|
|
|
type: zip
|
2017-07-26 23:29:33 -05:00
|
|
|
- path: $(MSVC_SEVENZIP)
|
|
|
|
name: msvcupdate
|
2015-05-25 13:34:09 -05:00
|
|
|
|
2016-11-19 14:11:49 -06:00
|
|
|
deploy:
|
2017-01-04 21:39:59 -06:00
|
|
|
provider: GitHub
|
2017-08-03 00:51:48 -05:00
|
|
|
release: $(appveyor_repo_tag_name)
|
2017-01-04 21:39:59 -06:00
|
|
|
auth_token:
|
|
|
|
secure: "dbpsMC/MgPKWFNJCXpQl4cR8FYhepkPLjgNp/pRMktZ8oLKTqPYErfreaIxb/4P1"
|
2017-07-26 23:29:33 -05:00
|
|
|
artifact: msvcupdate,msvcbuild
|
2017-01-04 21:39:59 -06:00
|
|
|
draft: false
|
|
|
|
prerelease: false
|
2016-11-19 14:11:49 -06:00
|
|
|
on:
|
2017-08-03 00:51:48 -05:00
|
|
|
appveyor_repo_tag: true
|