forked from Dynatrace/openkit-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
70 lines (61 loc) · 1.76 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
version: 2.2.0.{build}
# environment variables
environment:
COVERALLS_REPO_TOKEN:
secure: IH0irnGyWP3Z9jcxBz6LsnYIH2pStkwq23/tMRWFCFswYfTA5DvVPTp4pbz9r0Hi
NUGET_API_KEY:
secure: FLH3rCl/Okbe8lchEljJpnCPrs18DiTlm5oQn3i03yAEIjNhpQcWQDFV3VMPXthc
# Build with Visual Studio 2017
image: Visual Studio 2017
# Build Release and Coverage (2 build jobs)
configuration:
- Release
- Coverage
# fail fast (No need to build Failing Release & Coverage builds)
matrix:
fast_finish: true
# Assembly patching, only the top level Directory.Build.props file must be patched
dotnet_csproj:
patch: true
file: '*.props'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
# restore NuGet packages
before_build:
- ps: msbuild /t:restore openkit-dotnet.sln
# build
build:
project: openkit-dotnet.sln
verbosity: minimal
# run tests with code coverage only for Coverage configuration
for:
-
matrix:
only:
- configuration: Coverage
test_script:
- ps: |
.\callTest.ps1 -option Coverage
after_test:
- ps: |
if ("$Env:APPVEYOR_PULL_REQUEST_NUMBER" -eq "" -And "$Env:APPVEYOR_REPO_NAME" -eq "Dynatrace/openkit-dotnet")
{
$coveralls = "$env:USERPROFILE\.nuget\packages\coveralls.io\1.4.2\tools\coveralls.net.exe"
& $coveralls --opencover .\coverage.xml -r $Env:COVERALLS_REPO_TOKEN
}
else
{
Write-Host("Skipping coveralls.io upload")
Write-Host("APPVEYOR_PULL_REQUEST_NUMBER=$Env:APPVEYOR_PULL_REQUEST_NUMBER")
Write-Host("APPVEYOR_REPO_NAME=$Env:APPVEYOR_REPO_NAME")
}
-
matrix:
only:
- configuration: Release
test_script:
- ps: |
.\callTest.ps1 -option Release