forked from squid-box/SevenZipSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
72 lines (56 loc) · 2.21 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '1.5.0.{build}'
image: Visual Studio 2019
environment:
COVERALLS_REPO_TOKEN:
secure: c5HtM5NVjJZQ4gbujqELYPgeCHTr9UMpuYl/A4MYX0lSdsMh/QISCfZxUHuLszPI
matrix:
- job_name: Regular Build
configuration: Release
- job_name: Lite Build
configuration: LiteRelease
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
before_build:
nuget restore SevenZip.sln
build:
parallel: true
project: 'SevenZip.sln'
publish_nuget: false
for:
-
matrix:
only:
- job_name: Regular Build
test_script:
- ps: Invoke-Expression ($env:USERPROFILE + '\.nuget\packages\OpenCover\4.7.922\tools\OpenCover.Console.exe -register:Path64 -filter:"+[*]* -[SevenZip.Tests]* -[nunit.framework]*" -target:"' + $env:USERPROFILE + '\.nuget\packages\nunit.consolerunner\3.10.0\tools\nunit3-console.exe" -targetargs:"/domain:single Stage/Release/net45/SevenZip.Tests.dll" -output:coverage.xml')
- ps: Invoke-Expression 'dotnet new tool-manifest'
- ps: Invoke-Expression 'dotnet tool install coveralls.net'
- ps: Invoke-Expression 'dotnet tool restore'
- ps: Invoke-Expression 'dotnet tool run csmacnz.Coveralls --opencover -i coverage.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'
after_build:
- cmd: nuget pack package.regular.nuspec -version "%APPVEYOR_BUILD_VERSION%"
-
matrix:
only:
- job_name: Lite Build
after_build:
- cmd: nuget pack package.lite.nuspec -version "%APPVEYOR_BUILD_VERSION%"
artifacts:
- path: 'Squid-Box.SevenZip*.nupkg'
name: 'NuGet'
- path: 'coverage.xml'
name: 'Code Coverage'
deploy:
- provider: NuGet
api_key:
secure: QHcRI5K4Gls/HtuXas7mofJp3/UIexnWnGeXch3+btMTwTk4mgvsWDWPcZWXor9y
artifact: /SevenZip.*\.nupkg/
skip_symbols: false
on:
branch: master