-
Notifications
You must be signed in to change notification settings - Fork 145
/
appveyor.yml
90 lines (69 loc) · 2.94 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
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 3.0.1.{build}
# Do not build on tags (GitHub only)
skip_tags: true
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
os: Visual Studio 2017
# clone directory
clone_folder: c:\projects\RiotSharp
# environment variables
environment:
TOURNAMENT_API_KEY:
secure: bsM+fl6l6wPOa4WruqOrwUiTiakBlrRVCeC5c+P7dAKsmkgSv+xQu0sXy93wB/YO
API_KEY:
secure: Gos0Y96AWTasuvntMvqLP9tUmpxRTclT3+dqSBiYLCaHkoiSoYdsXktYxf1tZ5Dn
# 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
#---------------------------------#
# 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\RiotSharp.Test\appsettings.json | ConvertFrom-Json | % {$_.ApiKey=$Env:API_KEY; $_.TournamentApiKey=$Env:TOURNAMENT_API_KEY; $_} | ConvertTo-Json | Set-Content c:\projects\RiotSharp\RiotSharp.Test\appsettings.json
- ps: nuget.exe restore c:\projects\RiotSharp\RiotSharp.sln
#---------------------------------#
# tests configuration #
#---------------------------------#
test:
assemblies:
- RiotSharp.Test.dll
test_script:
- cmd: dotnet test c:\projects\RiotSharp\RiotSharp.Test\RiotSharp.Test.csproj
# code coverage
after_test:
- .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe" -targetargs:"/noresults /noisolation /testcontainer:""c:\projects\RiotSharp\RiotSharp.Test\bin\Release\netcoreapp1.1\RiotSharp.Test.dll" -filter:"+[RiotSharp]* -[RiotSharp]RiotSharp.*Endpoint.*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -output:.\RiotSharp_coverage.xml
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "RiotSharp_coverage.xml"
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
# Email
- provider: Email
to:
- benjamin.fradet@gmail.com
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