-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
58 lines (45 loc) · 2.02 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
49
50
51
52
53
54
55
56
57
58
version: '{build}'
image: Visual Studio 2017
configuration: Release
pull_requests:
do_not_increment_build_number: true
nuget:
account_feed: false
project_feed: false
disable_publish_on_pr: true
environment:
COVERALLS_REPO_TOKEN:
secure: 8rE8Mjp3XcpgDMB0cybQxmP9A0wX1un5sa6L8NMWfJQubidhsz83y8p5NwPATA7H
cache:
- packages -> **\packages.config
install:
- ps: choco install gitversion.portable -pre -y
assembly_info:
patch: true
before_build:
- nuget restore src/Nancy.LeakyBucket.sln
- ps: gitversion /l console /output buildserver /updateAssemblyInfo /b (get-item env:APPVEYOR_REPO_BRANCH).Value
build:
project: src/Nancy.LeakyBucket.sln
after_build:
- cmd: nuget pack -Version "%GitVersion_NuGetVersion%" -Prop "target=%CONFIGURATION%"
after_test:
- nuget install NUnit.ConsoleRunner -Version 3.6.1 -OutputDirectory tools
- nuget install OpenCover -Version 4.6.519 -OutputDirectory tools
- nuget install coveralls.net -Version 0.7.0 -OutputDirectory tools
- ps: >-
.\tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -filter:"+[*]* -[*.Tests]* -[FakeItEasy]*" -target:"tools\NUnit.ConsoleRunner.3.6.1\tools\nunit3-console.exe" -targetargs:"/domain:single src\Nancy.LeakyBucket.Tests\bin\$env:CONFIGURATION\Nancy.LeakyBucket.Tests.dll" -output:opencoverCoverage.xml
$coveralls = (Resolve-Path "tools/coveralls.net.*/tools/csmacnz.coveralls.exe").ToString()
& $coveralls --opencover -i opencoverCoverage.xml --repoToken $env:COVERALLS_REPO_TOKEN --useRelativePaths --commitId $env:APPVEYOR_REPO_COMMIT --commitBranch $env:APPVEYOR_REPO_BRANCH --commitAuthor $env:APPVEYOR_REPO_COMMIT_AUTHOR --commitEmail $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL --commitMessage $env:APPVEYOR_REPO_COMMIT_MESSAGE --jobId $env:APPVEYOR_BUILD_NUMBER --serviceName appveyor
artifacts:
- path: '*.nupkg'
name: NuGet
deploy:
- provider: Environment
name: PreRelease NuGet Feed
on:
branch: master
- provider: Environment
name: Public NuGet Feed
on:
appveyor_repo_tag: true