Testing appveyor.

This commit is contained in:
Ben Vanik 2015-02-11 20:15:26 -08:00
parent cd0c2a6973
commit 61f8b8e6d2
4 changed files with 184 additions and 0 deletions

174
appveyor.yml Normal file
View File

@ -0,0 +1,174 @@
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build} # You can use {branch} too, for example
# you can use {branch} name in version format too
# version: 1.0.{build}-{branch}
# branches to build
branches:
# 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 CTP
# 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
# scripts that run after cloning repository
install:
- cmd: tools\buildbot\setup.bat
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: x64
# build Configuration, i.e. Debug, Release, etc.
configuration: Debug
build:
parallel: true # enable MSBuild parallel builds
project: MyTestAzureCS.sln # path to Visual Studio solution or project
# MSBuild verbosity level
verbosity: quiet|minimal|normal|detailed
# scripts to run before build
before_build:
# scripts to run after build
after_build:
# to run your custom scripts instead of automatic MSBuild
build_script:
- cmd: tools\buildbot\build.bat
# to disable automatic builds
#build: off
#---------------------------------#
# tests configuration #
#---------------------------------#
# scripts to run before tests
before_test:
# scripts to run after tests
after_test:
# to run your custom scripts instead of automatic tests
test_script:
- cmd: tools\buildbot\test.bat
# to disable automatic tests
#test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
#artifacts:
# pushing a single file
#- path: test.zip
# pushing entire folder as a zip archive
#- path: logs
# pushing all *.nupkg files in directory
#- path: out\*.nupkg
#---------------------------------#
# deployment configuration #
#---------------------------------#
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
# provider names are case-sensitive!
#deploy:
# Deploy to GitHub Releases
#- provider: GitHub
# artifact: /.*\.nupkg/ # upload all NuGet packages to release assets
# draft: false
# prerelease: false
# on:
# branch: master # release from master branch only
# appveyor_repo_tag: true # deploy on tag push only
# scripts to run before deployment
before_deploy:
# scripts to run after deployment
after_deploy:
# to run your custom scripts instead of provider deployments
deploy_script:
# to disable deployment
deploy: off
#---------------------------------#
# 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

3
tools/buildbot/build.bat Normal file
View File

@ -0,0 +1,3 @@
@ECHO OFF
python xenia-build.py build --debug

3
tools/buildbot/setup.bat Normal file
View File

@ -0,0 +1,3 @@
@ECHO OFF
python xenia-build.py setup

4
tools/buildbot/test.bat Normal file
View File

@ -0,0 +1,4 @@
@ECHO OFF
build\xenia\Debug\alloy-test
build\xenia\Debug\alloy-ppc-test --runtime_backend=x64