forked from BenFradet/RiotSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
89 lines (69 loc) · 2.6 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
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 2.5.0.{build}
# Do not build on tags (GitHub only)
skip_tags: true
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
os: Windows Server 2012
# clone directory
clone_folder: c:\projects\RiotSharp
# environment variables
environment:
TOURNAMENT_API_KEY:
secure: bsM+fl6l6wPOa4WruqOrwUiTiakBlrRVCeC5c+P7dAKsmkgSv+xQu0sXy93wB/YO
API_KEY:
secure: GGfqrjvrelLGtdQg6lMRoZ9apyyV1SXp+s/G/wVm6LdKpQzIVVksdOYV5jaNqRCu
# build cache to preserve files/folders between builds
cache:
- packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
# enable patching of AssemblyInfo.* files
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
build:
parallel: false # disable MSBuild parallel builds
project: RiotSharp.sln # path to Visual Studio solution or project
# MSBuild verbosity level
verbosity: minimal
# scripts to run before build
before_build:
- ps: (Get-Content c:\projects\RiotSharp\RiotSharpTest\App.config) | Foreach-Object {$_ -replace "TOURNAMENT_API_KEY", $Env:TOURNAMENT_API_KEY} | Set-Content c:\projects\RiotSharp\RiotSharpTest\App.config
- ps: (Get-Content c:\projects\RiotSharp\RiotSharpTest\App.config) | Foreach-Object {$_ -replace "API_KEY", $Env:API_KEY} | Set-Content c:\projects\RiotSharp\RiotSharpTest\App.config
- ps: nuget.exe restore c:\projects\RiotSharp\RiotSharp.sln
#---------------------------------#
# tests configuration #
#---------------------------------#
test:
assemblies:
- RiotSharpTest.dll
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
# Email
- provider: Email
to:
on_build_failure: true
on_build_success: false
on_build_status_changed: false
- provider: Webhook
url: https://webhooks.gitter.im/e/2668b239e8ba3b25f3ff
on_build_failure: true
on_build_success: false
on_build_status_changed: false