2015-01-11 13:29:39 -05:00
|
|
|
# shallow clone
|
2016-11-19 15:11:49 -05:00
|
|
|
clone_depth: 10
|
2015-01-11 12:33:44 -05:00
|
|
|
|
2016-11-19 15:11:49 -05:00
|
|
|
# don't build on tag
|
|
|
|
skip_tags: true
|
2015-01-24 10:45:06 -05:00
|
|
|
|
2016-08-29 09:19:50 -04:00
|
|
|
cache:
|
|
|
|
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
|
|
|
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
|
|
|
|
2017-05-21 18:56:25 -04:00
|
|
|
os: Visual Studio 2017
|
2016-01-04 17:55:53 -05:00
|
|
|
|
2015-01-15 01:07:18 -05:00
|
|
|
platform:
|
2015-02-08 09:23:33 -05:00
|
|
|
- x64
|
2015-01-15 01:07:18 -05:00
|
|
|
|
|
|
|
configuration:
|
|
|
|
- Release
|
2015-01-11 12:33:44 -05:00
|
|
|
|
|
|
|
install:
|
2015-07-07 15:22:26 -04:00
|
|
|
- git submodule update --init --recursive
|
2015-01-11 12:33:44 -05:00
|
|
|
|
|
|
|
before_build:
|
2017-01-23 06:06:55 -05:00
|
|
|
# Xamarin log spam workaround
|
2017-05-21 18:56:25 -04:00
|
|
|
- del "C:\Program Files (x86)\MSBuild\15.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
|
2015-01-11 12:33:44 -05:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2017-05-21 18:56:25 -04:00
|
|
|
- cmake -G "Visual Studio 15 2017 Win64" -DCITRA_USE_BUNDLED_QT=1 -DCITRA_USE_BUNDLED_SDL2=1 ..
|
2015-01-11 12:33:44 -05:00
|
|
|
- cd ..
|
2015-01-24 10:45:06 -05:00
|
|
|
|
2016-03-20 10:58:24 -04:00
|
|
|
build:
|
|
|
|
project: build/citra.sln
|
|
|
|
parallel: true
|
|
|
|
|
2016-11-19 15:11:49 -05:00
|
|
|
after_build:
|
|
|
|
- ps: |
|
|
|
|
$GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
|
|
|
|
$GITREV = $(git show -s --format='%h')
|
2016-12-31 23:38:15 -05:00
|
|
|
$GIT_LONG_HASH = $(git rev-parse HEAD)
|
2016-11-19 15:11:49 -05: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 " ", ""
|
2016-12-31 23:38:15 -05:00
|
|
|
$BINTRAY_VERSION = "nightly-$GIT_LONG_HASH" -replace " ", ""
|
2016-09-01 09:39:20 -04:00
|
|
|
|
2016-11-19 15:11:49 -05: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-01-04 23:29:27 -05:00
|
|
|
$env:GITREV = $GITREV
|
2016-09-01 09:39:20 -04:00
|
|
|
|
2016-11-19 15:11:49 -05:00
|
|
|
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
|
2016-09-01 12:47:31 -04:00
|
|
|
|
2016-11-19 15:11:49 -05:00
|
|
|
test_script:
|
|
|
|
- cd build && ctest -VV -C Release && cd ..
|
2015-05-25 14:34:09 -04:00
|
|
|
|
2016-11-19 15:11:49 -05:00
|
|
|
artifacts:
|
|
|
|
- path: $(MSVC_BUILD_NAME)
|
|
|
|
name: msvcbuild
|
|
|
|
type: zip
|
|
|
|
- path: $(MSVC_BUILD_PDB)
|
|
|
|
name: msvcdebug
|
|
|
|
type: zip
|
2015-05-25 14:34:09 -04:00
|
|
|
|
2016-11-19 15:11:49 -05:00
|
|
|
deploy:
|
2017-01-04 22:39:59 -05:00
|
|
|
provider: GitHub
|
2017-01-04 23:29:27 -05:00
|
|
|
release: nightly-$(appveyor_build_number)
|
|
|
|
description: |
|
|
|
|
Citra nightly releases. Please choose the correct download for your operating system from the list below.
|
|
|
|
|
|
|
|
Short Commit Hash $(GITREV)
|
2017-01-04 22:39:59 -05:00
|
|
|
auth_token:
|
|
|
|
secure: "dbpsMC/MgPKWFNJCXpQl4cR8FYhepkPLjgNp/pRMktZ8oLKTqPYErfreaIxb/4P1"
|
|
|
|
artifact: msvcbuild
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
2016-11-19 15:11:49 -05:00
|
|
|
on:
|
|
|
|
branch: master
|
2017-01-08 13:17:44 -05:00
|
|
|
appveyor_repo_name: citra-emu/citra-nightly
|