-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
27 lines (27 loc) · 1.19 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
version: 3.0.{build}
skip_commits:
message: /NO-BUILD/
files:
- docs/*
- 'LICENSE'
- 'README.md'
image: Visual Studio 2019
before_build:
- ps: dotnet restore --no-cache --verbosity=normal
build_script:
- ps: dotnet build --no-restore --configuration="release" -p:Version="$env:APPVEYOR_BUILD_VERSION"
after_build:
- ps: dotnet pack Grumpy.Common/Grumpy.Common.csproj --no-build --include-symbols --include-source --verbosity=normal -p:PackageVersion="$env:APPVEYOR_BUILD_VERSION" --configuration="release"
test_script:
- cmd: "\"%USERPROFILE%\\.nuget\\packages\\OpenCover\\4.7.922\\tools\\OpenCover.Console.exe\" -register:user -oldStyle -target:\"%ProgramFiles%\\dotnet\\dotnet.exe\" -targetargs:\"test Grumpy.Common.UnitTests\\Grumpy.Common.UnitTests.csproj\" -output:\"coverage.xml\" -filter:\"+[Grumpy.Common*]* -[Grumpy.Common.UnitTests*]*\""
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.xml" -t c5001df3-6360-43c5-90b8-86ad45d57c82
artifacts:
- path: '**\*.nupkg'
name: NuGet
deploy:
provider: Environment
name: NuGet