/
appveyor.yml
35 lines (27 loc) · 1.11 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
install:
- choco install gitversion.portable -pre -y
before_build:
- .paket\paket.bootstrapper.exe
- .paket\paket.exe restore
- ps: gitversion /l console /output buildserver
build:
project: Nancy.ProblemDetails.sln
configuration: Release
after_build:
- .paket\paket.exe pack output nugets include-referenced-projects version %GitVersion_NuGetVersion%
after_test:
- .\packages\OpenCover\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"Tests\Nancy.ProblemDetails.Tests\bin\Release\Nancy.ProblemDetails.Tests.dll -noshadow -appveyor" -returntargetcode -filter:"+[Nancy.ProblemDetails*]* -[Nancy.ProblemDetails.Tests*]* -[Test*]*" -hideskipped:All -output:.\Nancy.ProblemDetails_coverage.xml
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "Nancy.ProblemDetails_coverage.xml"
artifacts:
- path: 'nugets\*.nupkg'
- path: Nancy.ProblemDetails_coverage.xml
cache:
- packages -> paket.lock
deploy:
- provider: Environment
name: NuGet
on:
branch: /v\d\.\d(\.\d)?/
appveyor_repo_tag: true