-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
43 lines (34 loc) · 1.22 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
image: Visual Studio 2017
platform: Any CPU
environment:
version: $(APPVEYOR_BUILD_VERSION)
configuration:
- Release
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '%version%'
package_version: '%version%'
assembly_version: '%version%'
file_version: '%version%'
informational_version: '%version%'
before_build:
- choco install opencover.portable
- choco install codecov
- dotnet restore
build:
project: PagedList.sln
test_script:
- OpenCover.Console.exe -oldstyle -register:user -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test --logger:trx;LogFileName=results.trx /p:DebugType=full PagedList.NetCore.Tests\PagedList.NetCore.Tests.csproj" -filter:"+[PagedList.NetCore*]* -[PagedList.NetCore.Tests*]*" -output:".\coverage.xml"
- codecov -f .\coverage.xml -t %CODECOV_TOKEN%
after_test:
- dotnet pack --configuration Release /p:Version=%version%
artifacts:
- path: PagedList.NetCore\bin\Release\netstandard2.0\PagedList.NetCore.dll
name: PagedList.NetCore.dll
- path: PagedList.NetCore\bin\Release\PagedList.NetCore.%version%.nupkg
name: PagedList.NetCore.%version%.nupkg
deploy:
provider: NuGet
api_key:
secure: hb5jOmzsvUKCtOP41EFtc/lwXAOh5auC5KAi2Ok9i/FmTuo2F36yzEgaPiT9olsB