2015-12-31 01:10:19 +00:00
|
|
|
#---------------------------------#
|
|
|
|
# general configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
# version format
|
2016-06-04 17:30:50 +00:00
|
|
|
version: 1.0.{build}-{branch}
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
# branches to build
|
|
|
|
branches:
|
|
|
|
# whitelist
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
# blacklist
|
|
|
|
except:
|
|
|
|
- gh-pages
|
|
|
|
|
|
|
|
# Do not build on tags (GitHub only)
|
|
|
|
skip_tags: true
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# environment configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
# Operating system (build VM template)
|
|
|
|
os: Visual Studio 2015
|
|
|
|
|
|
|
|
# scripts that are called at very beginning, before repo cloning
|
|
|
|
init:
|
|
|
|
- git config --global core.autocrlf input
|
|
|
|
|
|
|
|
# clone directory
|
|
|
|
clone_folder: c:\dev\xenia
|
|
|
|
|
|
|
|
# environment variables
|
|
|
|
environment:
|
|
|
|
my_var1: value1
|
|
|
|
my_var2: value2
|
|
|
|
|
|
|
|
# build cache to preserve files/folders between builds
|
2015-12-31 08:39:09 +00:00
|
|
|
#cache:
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
# scripts that run after cloning repository
|
|
|
|
install:
|
|
|
|
- cmd: set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
|
|
|
|
- cmd: xb.bat setup
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# build configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
|
2015-12-31 03:59:57 +00:00
|
|
|
platform: Windows
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
# build Configuration, i.e. Debug, Release, etc.
|
|
|
|
configuration:
|
2015-12-31 03:59:57 +00:00
|
|
|
- Release
|
2017-05-07 20:53:12 +00:00
|
|
|
- Checked
|
2015-12-31 01:10:19 +00:00
|
|
|
|
2016-06-13 01:05:58 +00:00
|
|
|
#build:
|
|
|
|
# parallel: true # enable MSBuild parallel builds
|
|
|
|
# project: build\xenia.sln # path to Visual Studio solution or project
|
|
|
|
#
|
|
|
|
# # MSBuild verbosity level
|
|
|
|
# #verbosity: quiet|minimal|normal|detailed
|
|
|
|
# verbosity: minimal
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
# scripts to run before build
|
2016-01-01 00:35:11 +00:00
|
|
|
#before_build:
|
2015-12-31 01:26:30 +00:00
|
|
|
#- xb.bat lint --all
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
# scripts to run after build
|
|
|
|
after_build:
|
2017-09-09 15:19:37 +00:00
|
|
|
- 7z a xenia-%appveyor_repo_branch%.zip LICENSE %APPVEYOR_BUILD_FOLDER%\build\bin\%PLATFORM%\%CONFIGURATION%\xenia.exe %APPVEYOR_BUILD_FOLDER%\build\bin\%PLATFORM%\%CONFIGURATION%\xenia.pdb
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
# to run your custom scripts instead of automatic MSBuild
|
2016-06-13 01:05:58 +00:00
|
|
|
# We also compile the tests here instead of later on.
|
|
|
|
build_script:
|
2017-04-08 17:50:56 +00:00
|
|
|
- cmd: xb.bat build --config=%CONFIGURATION% --target=src\xenia-app --target=tests\xenia-cpu-ppc-tests
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
# to disable automatic builds
|
|
|
|
#build: off
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# tests configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
# scripts to run before tests
|
|
|
|
before_test:
|
|
|
|
- cmd: xb.bat gentests
|
|
|
|
|
|
|
|
# scripts to run after tests
|
|
|
|
after_test:
|
|
|
|
|
|
|
|
# to run your custom scripts instead of automatic tests
|
|
|
|
test_script:
|
2017-04-08 17:50:56 +00:00
|
|
|
- cmd: xb.bat test --config=%CONFIGURATION% --no_build
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
# to disable automatic tests
|
|
|
|
#test: off
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# artifacts configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
# pushing a single file
|
|
|
|
#- path: test.zip
|
|
|
|
|
|
|
|
# pushing a single file with environment variable in path and "Deployment name" specified
|
|
|
|
#- path: MyProject\bin\$(configuration)
|
|
|
|
# name: myapp
|
|
|
|
|
|
|
|
# pushing entire folder as a zip archive
|
|
|
|
#- path: logs
|
|
|
|
|
|
|
|
# pushing all *.nupkg files in directory
|
|
|
|
#- path: out\*.nupkg
|
|
|
|
|
2015-12-31 19:21:28 +00:00
|
|
|
- path: xenia-cpu-ppc-test.log
|
2017-09-09 15:19:37 +00:00
|
|
|
- path: xenia-$(appveyor_repo_branch).zip
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# deployment configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
|
|
|
|
# provider names are case-sensitive!
|
2015-12-31 19:21:28 +00:00
|
|
|
deploy:
|
|
|
|
- provider: Environment
|
|
|
|
name: xenia-master
|
2017-09-09 15:19:37 +00:00
|
|
|
release: xenia-$(appveyor_repo_branch)-v$(appveyor_build_version)
|
|
|
|
artifact: xenia-$(appveyor_repo_branch).zip
|
2015-12-31 19:21:28 +00:00
|
|
|
draft: false
|
|
|
|
prerelease: true
|
|
|
|
on:
|
|
|
|
branch: master # release from master branch only
|
2017-04-08 17:50:56 +00:00
|
|
|
configuration: release # deploy release builds only
|
2015-12-31 19:21:28 +00:00
|
|
|
appveyor_repo_tag: true # deploy on tag push only
|
2017-12-05 20:53:24 +00:00
|
|
|
is_not_pr: true # don't deploy pull requests
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
# scripts to run before deployment
|
2016-01-01 00:35:11 +00:00
|
|
|
#before_deploy:
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
# scripts to run after deployment
|
2016-01-01 00:35:11 +00:00
|
|
|
#after_deploy:
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
# to run your custom scripts instead of provider deployments
|
2016-01-01 00:35:11 +00:00
|
|
|
#deploy_script:
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
# to disable deployment
|
2015-12-31 19:21:28 +00:00
|
|
|
# deploy: off
|
2015-12-31 01:10:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# global handlers #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
# on successful build
|
|
|
|
on_success:
|
|
|
|
|
|
|
|
# on build failure
|
|
|
|
on_failure:
|
|
|
|
|
|
|
|
# after build failure or success
|
|
|
|
on_finish:
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# notifications #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
# notifications:
|
|
|
|
# # Email
|
|
|
|
# - provider: Email
|
|
|
|
# to:
|
|
|
|
# - user1@email.com
|
|
|
|
# - user2@email.com
|
|
|
|
# subject: 'Build {{status}}' # optional
|
|
|
|
# message: "{{message}}, {{commitId}}, ..." # optional
|
|
|
|
# on_build_status_changed: true
|
|
|
|
|
|
|
|
# # Webhook
|
|
|
|
# - provider: Webhook
|
|
|
|
# url: http://www.myhook2.com
|
|
|
|
# headers:
|
|
|
|
# User-Agent: myapp 1.0
|
|
|
|
# Authorization:
|
|
|
|
# secure: GhD+5xhLz/tkYY6AO3fcfQ==
|
|
|
|
# on_build_success: false
|
|
|
|
# on_build_failure: true
|
|
|
|
# on_build_status_changed: true
|