-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
42 lines (42 loc) · 1.56 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
image: Visual Studio 2019
skip_branch_with_pr: true
configuration: Release
install:
- choco install gitversion.portable --pre -y
# - choco install gitversion.portable -y --version=4.0.0
- 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: Rebus.FluentValidation.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:"+[Rebus.FluentValidation*]* -[*Tests]* -[*Testing]*" -excludebyattribute:*.ExcludeFromCodeCoverageAttribute;*.GeneratedCodeAttribute;*.DebuggerNonUserCodeAttribute;*.CompilerGeneratedAttribute;*.DebuggerHiddenAttribute -oldStyle
- codecov -f coverage.xml
deploy:
- provider: NuGet
api_key:
secure: wSwA2TpkqOMAk0m3EjrxbulepKj1RxelV8Glndpa6v5WqSI+1JNl67LiTJheHvIX
on:
branch:
- master
- /release\/.+/