-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
37 lines (37 loc) · 1.38 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
init:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME.substring(1))"
}
else
{
Update-AppveyorBuild -Version "$(((nuget list RollingWindow -Source https://api.nuget.org/v3/index.json | findstr "RollingWindow[^.-]") -split ' ')[1])-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
}
image: Visual Studio 2017
configuration: Release
environment:
COVERALLS_REPO_TOKEN:
secure: b9992737-ee28-4d1f-9f83-8227478031b2
pull_requests:
do_not_increment_build_number: true
before_build:
- xcopy "C:\Program Files (x86)\MSBuild\Microsoft\Portable" "C:\Program Files\dotnet\sdk\2.1.200\Microsoft\Portable\" /S /E
- dotnet restore -s https://api.nuget.org/v3/index.json
- choco install opencover.portable
- choco install codecov
build_script:
- cmd: dotnet pack -c Release RollingWindow
test_script:
- OpenCover.Console.exe -register:user -target:dotnet.exe -targetargs:"test RollingWindow.Test\RollingWindow.Test.csproj" -filter:"+[RollingWindow]* -[RollingWindow.Test]*" -oldStyle
- codecov -f results.xml
artifacts:
- path: RollingWindow\bin\Release\RollingWindow.*
nuget:
account_feed: true
deploy:
- provider: NuGet
on:
appveyor_repo_tag: true
api_key:
secure: QB8FoYFBWfFy8cxyScelVPg3X4q2BvLO0VELkUAOKT4ZHp362V7cIRq+nIrkjFJ5