-
Notifications
You must be signed in to change notification settings - Fork 9
/
appveyor.yml
38 lines (34 loc) · 1.31 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
version: 2.2.{build}
image: Visual Studio 2017
skip_tags: true
configuration: Release
environment:
APPVEYOR_BLOCK_DOTNETCORE_TESTS_AUTORUN: true
build_script:
- ps: >-
$assemblyVersion = ${env:APPVEYOR_BUILD_VERSION}
$packageVersion = ${env:APPVEYOR_BUILD_VERSION}
if ($env:APPVEYOR_REPO_BRANCH -ne "master") {
$packageVersion = "$packageVersion-alpha"
}
dotnet build .\Src\HoneyBear.HalClient.sln `
-c $env:CONFIGURATION `
-p:AssemblyVersion=$assemblyVersion `
-p:FileVersion=$assemblyVersion `
-p:PackageVersion=$packageVersion `
-p:Version=$packageVersion `
-p:packageoutputpath=$pwd\artifacts
after_test:
- ps: >-
. $env:USERPROFILE\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe `
-register:user `
-filter:"+[HoneyBear.HalClient]*" `
-target:"$env:USERPROFILE\.nuget\packages\NUnit.ConsoleRunner\3.8.0\tools\nunit3-console.exe" `
-targetargs:".\Src\HoneyBear.HalClient.Unit.Tests\bin\$env:CONFIGURATION\net471\HoneyBear.HalClient.Unit.Tests.dll" `
-output:coverage.xml
. $env:USERPROFILE\.nuget\packages\coveralls.io\1.4.2\tools\coveralls.net.exe `
--opencover coverage.xml `
--repo-token hOBugtrP7A2crVX8BA0cT9E8GjnlK8bcP
deploy: off
artifacts:
- path: .\artifacts\*.nupkg