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-11-20 01:41:49 +05:30
|
|
|
# don't build on tag
|
|
|
|
skip_tags: true
|
2015-01-24 21:15:06 +05:30
|
|
|
|
2016-08-29 18:49:50 +05:30
|
|
|
cache:
|
|
|
|
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
|
|
|
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
|
|
|
|
2016-01-05 04:25:53 +05:30
|
|
|
os: Visual Studio 2015
|
|
|
|
|
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
|
2016-03-01 22:54:18 +05:30
|
|
|
- cmake -G "Visual Studio 14 2015 Win64" -DCITRA_USE_BUNDLED_QT=1 -DCITRA_USE_BUNDLED_SDL2=1 ..
|
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-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-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
|
|
|
|
7z a -tzip $MSVC_BUILD_NAME .\build\bin\release\* .\license.txt .\README.md
|
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
|
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-01-05 09:59:27 +05:30
|
|
|
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-05 09:09:59 +05:30
|
|
|
auth_token:
|
|
|
|
secure: "dbpsMC/MgPKWFNJCXpQl4cR8FYhepkPLjgNp/pRMktZ8oLKTqPYErfreaIxb/4P1"
|
|
|
|
artifact: msvcbuild
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
2016-11-20 01:41:49 +05:30
|
|
|
on:
|
|
|
|
branch: master
|