-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathappveyor.yml
44 lines (41 loc) · 2.06 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
image: Visual Studio 2022
version: 1.0.{build}
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
before_build:
- cmd: nuget restore
environment:
CODECOV_REPO_TOKEN:
secure: oC0OUIZSVY7kLUnkWIw33aVZrTkJIeNhFGM/fy2WYvFgdG+GeajLvF+UeGHYXEfF
configuration:
- Release
test_script:
- ps: |
dotnet test --configuration Release --filter=TestCategory!=ApiTests /p:CollectCoverage=true /p:Exclude='\"[*TestAdapter*]*,[*]*.Startup*,[*]*.Program,[*.Test*]*,[nunit*]*\"' /p:ExcludeByAttribute='\"Obsolete,GeneratedCode,CompilerGeneratedAttribute\"' /p:CoverletOutputFormat=cobertura /p:CoverletOutput=../coverage/Fluent.Net.coverage.cobertura.xml /p:Threshold=80 /p:ThresholdType=branch Fluent.Net.Test/Fluent.Net.Test.csproj
dotnet test --configuration Release --filter=TestCategory!=ApiTests /p:CollectCoverage=true /p:Exclude='\"[*TestAdapter*]*,[*]*.Startup*,[*]*.Program,[*.Test*]*,[nunit*]*,[Fluent.Net]*\"' /p:ExcludeByAttribute='\"Obsolete,GeneratedCode,CompilerGeneratedAttribute\"' /p:CoverletOutputFormat=cobertura /p:CoverletOutput=../coverage/Fluent.Net.SyntaxTest.coverage.cobertura.xml /p:Threshold=80 /p:ThresholdType=branch Fluent.Net.SyntaxTest.Test/Fluent.Net.SyntaxTest.Test.csproj
# after_test:
# - ps: |
# $env:PATH = 'C:\Program Files\git\usr\bin;' + $env:PATH
# Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
# bash codecov.sh -f '"coverage/*.xml"' -t $env:CODECOV_REPO_TOKEN
# echo ("for some reason printing the last exit code makes appveyor think this step succeeded " + $lastExitCode)
for:
-
branches:
only:
- master
build:
publish_nuget: true
deploy:
provider: NuGet
api_key:
secure: KqKTxwdbcvlB9Hp5+5rdk6nANSM4IAd+NKA+Ojik7d6eLk0/JGblNJlnUNXARmd5
skip_symbols: false
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))