forked from xenia-project/xenia
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.appveyor.yml
205 lines (154 loc) · 4.79 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}-{branch}
# branches to build
branches:
# whitelist
# only:
# - master
# blacklist
except:
- gh-pages
# Do not build on tags (GitHub only)
skip_tags: true
skip_commits:
files:
- docs/*
- LICENSE
- README.md
pull_requests:
do_not_increment_build_number: true
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
os: Visual Studio 2017
# 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
#cache:
# 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.
platform: Windows
# build Configuration, i.e. Debug, Release, etc.
configuration:
- Release
- Checked
#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
# scripts to run before build
#before_build:
#- xb.bat lint --all
# scripts to run after build
after_build:
- 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
# to run your custom scripts instead of automatic MSBuild
# We also compile the tests here instead of later on.
build_script:
- cmd: xb.bat build --config=%CONFIGURATION% --target=src\xenia-app --target=tests\xenia-cpu-ppc-tests
# 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:
- cmd: xb.bat test --config=%CONFIGURATION% --no_build
# 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
- path: xenia-cpu-ppc-test.log
- path: xenia-$(appveyor_repo_branch).zip
#---------------------------------#
# deployment configuration #
#---------------------------------#
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
# provider names are case-sensitive!
deploy:
- provider: Environment
name: xenia-master
release: xenia-$(appveyor_repo_branch)-v$(appveyor_build_version)
artifact: xenia-$(appveyor_repo_branch).zip
draft: false
prerelease: true
on:
branch: master # release from master branch only
configuration: release # deploy release builds only
appveyor_repo_tag: true # deploy on tag push only
is_not_pr: true # don't deploy pull requests
# 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:
# 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