-
Notifications
You must be signed in to change notification settings - Fork 13
/
appveyor.yml
52 lines (41 loc) · 1.93 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
version: '{build}'
image: Visual Studio 2017
configuration: Release
pull_requests:
do_not_increment_build_number: false
nuget:
account_feed: false
project_feed: false
disable_publish_on_pr: true
cache:
- packages -> **\packages.config
install:
- ps: choco install gitversion.portable -y
assembly_info:
patch: true
before_build:
- nuget restore FakerDotNet.sln
- ps: gitversion /l console /output buildserver /updateAssemblyInfo /b $env:APPVEYOR_REPO_BRANCH
build:
project: FakerDotNet.sln
after_build:
- cmd: nuget pack FakerDotNet.nuspec -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:"+[FakerDotNet*]* -[FakerDotNet.Tests*]* -[FakerDotNet.Wrappers*]*" -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test -f netcoreapp2.0 tests\FakerDotNet.Tests\FakerDotNet.Tests.csproj" -output:opencoverCoverage.xml -mergeoutput -hideskipped:File -oldStyle -searchdirs:tests\FakerDotNet.Tests\bin\$env:CONFIGURATION\netcoreapp2.0
.\tools\coveralls.net.0.7.0\tools\csmacnz.Coveralls.exe --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