-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
48 lines (38 loc) · 1.27 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
45
46
47
48
image: Visual Studio 2017
version: 0.3.0+{build}-{branch}
skip_branch_with_pr: false
clone_depth: 1
configuration:
- Debug
- Release
init:
- ps: git config --global core.autocrlf true
- ps: dotnet --version
before_build:
- cmd: choco install -y opencover.portable
- cmd: choco install -y codecov
build_script:
- ps: dotnet build -c $env:Configuration
- ps: cd ./Realmar.Pipes.Tests
- ps: dotnet restore
test_script:
- ps: OpenCover.Console.exe -register:user -target:"dotnet.exe" -targetargs:"xunit -c $env:Configuration" -filter:"+[*]* -[*.Tests]*" -output:"..\Realmar.Pipes_coverage.xml" -oldstyle -returntargetcode -excludebyattribute:*.ExcludeFromCodeCoverage*;
after_test:
- ps: cd ..
- ps: codecov -f ".\Realmar.Pipes_coverage.xml"
artifacts:
- path: .\Realmar.Pipes\bin\$(configuration)\*.nupkg
name: NuGet.File
- path: .\Realmar.Pipes\bin\$(configuration)\*.nupkg
- path: .\Realmar.Pipes\bin\$(configuration)\**\*.dll
- path: .\Realmar.Pipes\bin\$(configuration)\**\*.pdb
- path: .\Realmar.Pipes\bin\$(configuration)\**\*.xml
deploy:
provider: NuGet
api_key:
secure: Dt0Cdhxr1YD5kwohkW9VMj0LGQj5dLT/hEEV8PRXyE3x5FcRxV01Urn8qsHo8mq5
skip_symbols: false
artifact: NuGet.File
on:
configuration: Release
appveyor_repo_tag: true