forked from skwasjer/MockHttp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (41 loc) · 1.51 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
image: Visual Studio 2022
skip_branch_with_pr: true
configuration: Release
environment:
IGNORE_NORMALISATION_GIT_HEAD_MOVE: 1
install:
- choco install gitversion.portable --pre -y
- gitversion /l console /output buildserver
- choco install opencover.portable -y
- choco install codecov -y
cache:
- C:\ProgramData\chocolatey\bin -> appveyor.yml, codecov.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml, codecov.yml
dotnet_csproj:
patch: true
file: '**\*.csproj;**\*.props'
version: '{GitVersion_SemVer}'
package_version: $(GitVersion_NuGetVersion)
assembly_version: $(GitVersion_AssemblySemVer)
file_version: $(GitVersion_AssemblySemFileVer)
informational_version: $(GitVersion_InformationalVersion)
nuget:
project_feed: true
# disable_publish_on_pr: true
before_build:
- dotnet restore
build:
project: MockHttp.sln
publish_nuget: true
publish_nuget_symbols: true
use_snupkg_format: true
verbosity: minimal
test_script:
- OpenCover.Console.exe -target:"dotnet.exe" -targetargs:"test -c Release /p:DebugType=full -l:trx;LogFilePrefix=testresults" -output:coverage.xml -register:user -returntargetcode -filter:"+[*MockHttp*]* -[*Tests]* -[*Testing]*" -excludebyattribute:*.ExcludeFromCodeCoverageAttribute;*.GeneratedCodeAttribute;*.DebuggerNonUserCodeAttribute;*.CompilerGeneratedAttribute;*.DebuggerHiddenAttribute -oldStyle
- codecov -f coverage.xml
deploy:
- provider: NuGet
api_key:
secure: DAtf3VaM4sn0mjbVCCO8e0qtHrf1R8Ste2qIxJToBuqa9Lp2YdC6quChAhMNtpF4
on:
APPVEYOR_REPO_TAG: true