2015-01-11 10:29:39 -08:00
|
|
|
# shallow clone
|
2016-11-19 12:11:49 -08:00
|
|
|
clone_depth: 10
|
2015-01-11 09:33:44 -08:00
|
|
|
|
2016-11-19 12:11:49 -08:00
|
|
|
# don't build on tag
|
|
|
|
skip_tags: true
|
2015-01-24 07:45:06 -08:00
|
|
|
|
2016-08-29 06:19:50 -07:00
|
|
|
cache:
|
|
|
|
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
|
|
|
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
|
|
|
|
2016-01-04 14:55:53 -08:00
|
|
|
os: Visual Studio 2015
|
|
|
|
|
2015-01-14 22:07:18 -08:00
|
|
|
platform:
|
2015-02-08 06:23:33 -08:00
|
|
|
- x64
|
2015-01-14 22:07:18 -08:00
|
|
|
|
|
|
|
configuration:
|
|
|
|
- Release
|
2015-01-11 09:33:44 -08:00
|
|
|
|
|
|
|
install:
|
2015-07-07 12:22:26 -07:00
|
|
|
- git submodule update --init --recursive
|
2015-01-11 09:33:44 -08:00
|
|
|
|
|
|
|
before_build:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-03-01 09:24:18 -08:00
|
|
|
- cmake -G "Visual Studio 14 2015 Win64" -DCITRA_USE_BUNDLED_QT=1 -DCITRA_USE_BUNDLED_SDL2=1 ..
|
2015-01-11 09:33:44 -08:00
|
|
|
- cd ..
|
2015-01-24 07:45:06 -08:00
|
|
|
|
2016-03-20 07:58:24 -07:00
|
|
|
build:
|
|
|
|
project: build/citra.sln
|
|
|
|
parallel: true
|
|
|
|
|
2016-11-19 12:11:49 -08:00
|
|
|
after_build:
|
|
|
|
- ps: |
|
|
|
|
$GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
|
|
|
|
$GITREV = $(git show -s --format='%h')
|
2016-12-31 20:38:15 -08:00
|
|
|
$GIT_LONG_HASH = $(git rev-parse HEAD)
|
2016-11-19 12:11:49 -08: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 20:38:15 -08:00
|
|
|
$BINTRAY_VERSION = "nightly-$GIT_LONG_HASH" -replace " ", ""
|
2016-09-01 06:39:20 -07:00
|
|
|
|
2016-11-19 12:11:49 -08: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
|
2016-12-31 16:37:21 -08:00
|
|
|
$env:BINTRAY_VERSION = $BINTRAY_VERSION
|
2016-09-01 06:39:20 -07:00
|
|
|
|
2016-11-19 12:11:49 -08: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 09:47:31 -07:00
|
|
|
|
2016-11-19 12:11:49 -08:00
|
|
|
test_script:
|
|
|
|
- cd build && ctest -VV -C Release && cd ..
|
2015-05-25 11:34:09 -07:00
|
|
|
|
2016-11-19 12:11:49 -08:00
|
|
|
artifacts:
|
|
|
|
- path: $(MSVC_BUILD_NAME)
|
|
|
|
name: msvcbuild
|
|
|
|
type: zip
|
|
|
|
- path: $(MSVC_BUILD_PDB)
|
|
|
|
name: msvcdebug
|
|
|
|
type: zip
|
2015-05-25 11:34:09 -07:00
|
|
|
|
2016-11-19 12:11:49 -08:00
|
|
|
deploy:
|
|
|
|
- provider: BinTray
|
|
|
|
username: citra-emu
|
|
|
|
api_key:
|
|
|
|
secure: qaZZfXp5Vv9xw5EmCxKLhGnNYhiNMDCdP84l0+h6HetfmvFlvHxyohWEVokLjl7d
|
|
|
|
subject: citra-emu
|
|
|
|
repo: citra
|
|
|
|
package: nightly
|
2016-12-31 16:37:21 -08:00
|
|
|
version: $(BINTRAY_VERSION)
|
2016-11-19 12:11:49 -08:00
|
|
|
publish: true
|
|
|
|
on:
|
|
|
|
branch: master
|