-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
36 lines (29 loc) · 1.19 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
version: 0.2.{build}
image: Visual Studio 2022
branches:
only:
- master
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
before_build:
- nuget restore
- choco install opencover.portable
- choco install codecov
build_script:
- dotnet build
test_script:
- OpenCover.Console.exe -register -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test --logger:trx;LogFileName=results.trx /p:DebugType=full GithubExplorer.IntegrationTests/GithubExplorer.IntegrationTests.csproj" -filter:"+[GithubExplorer*]* -[GithubExplorer.IntegrationTests*]*" -output:".\GithubExplorer_coverage.xml" -log:Verbose -oldstyle -returntargetcode
- codecov -f "GithubExplorer_coverage.xml"
deploy_script:
- dotnet pack -c Release
- ps: $buildNumber = $env:APPVEYOR_BUILD_VERSION
- ps: $nugetFile = "GitHubExplorer.CommandLine/nupkg/GithubExplorer.CommandLine." + $buildNumber + ".nupkg"
- ps: nuget push $nugetFile -ApiKey $env:NUGET_API_KEY -Source https://www.nuget.org/api/v2/package
artifacts:
- path: "GithubExplorer_coverage.xml"