-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
38 lines (36 loc) · 1.2 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
image: Visual Studio 2019
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: nF0kOXFMucWeQvwLY0JBbeaLFzovYoWp4Lg3IBqDxE9gjytkApRiegaOAl5iqF0O
configuration:
- Release
test_script:
- dotnet test --configuration Release /p:CollectCoverage=true /p:Exclude='\"[*TestAdapter*]*,[nunit]*\"' /p:CoverletOutputFormat=cobertura /p:CoverletOutput="../coverage/BlushingPenguin.JsonPath.coverage.xml" /p:CopyLocalLockFileAssemblies=true BlushingPenguin.JsonPath.Test/BlushingPenguin.JsonPath.Test.csproj
after_test:
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "coverage/BlushingPenguin.JsonPath.coverage.xml" -t $env:CODECOV_REPO_TOKEN -U "-s" -A "-s"
for:
-
branches:
only:
- master
build:
publish_nuget: true
deploy:
provider: NuGet
api_key:
secure: iHfoSmXlglkHyOk70s/fQAOlT/swaDSnJBwUGyaw32GUVV/5hCZUseOuRBwG+Wg1
skip_symbols: false