forked from blushingpenguin/Fluent.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
44 lines (41 loc) · 2.05 KB
/
appveyor.yml
File metadata and controls
44 lines (41 loc) · 2.05 KB
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: F9RK0BX37n+nvYMX5hw8wcu9mYkKPuA87YaNWobY8+lnWH5hbor62eeozVE/1Qhu
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'))