forked from Cimpress-MCP/PostalCodes.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
50 lines (50 loc) · 2.29 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
version: build_number_{build}
configuration: Release
skip_tags: true
init:
- ps: "$v = [regex]::match($env:APPVEYOR_REPO_BRANCH,'release/(.*)').Groups[1].Value\nWrite-Host \"On branch $($env:APPVEYOR_REPO_BRANCH)\"\nIF($v) { \n $env:VERSION_FROM_BRANCH = \"$($v).$($env:APPVEYOR_BUILD_NUMBER)\"\n} else {\n $env:VERSION_FROM_BRANCH = \"0.0.0.$($env:APPVEYOR_BUILD_NUMBER)\"\n}\nWrite-Host \"Set version to $($env:VERSION_FROM_BRANCH)\""
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: $(VERSION_FROM_BRANCH)
assembly_file_version: $(VERSION_FROM_BRANCH)
assembly_informational_version: $(VERSION_FROM_BRANCH)
environment:
COVERALLS_REPO_TOKEN:
secure: qjY74qfU6R9CZnQA3JyIf9d/WxZBuVF2ysEapYlNnoUW2L7uMgsVDwmOWMHekof2
build:
parallel: true
verbosity: normal
test_script:
- .\packages\OpenCover.4.5.3723\OpenCover.Console.exe -register:user -target:"packages\NUnit.Runners.2.6.4\tools\nunit-console.exe" -register:user "-targetargs:""src\PostalCodes.UnitTests\bin\Release\PostalCodes.UnitTests.dll"" /noshadow" -filter:"+[PostalCodes*]*" -output:opencoverCoverage.xml
- ps: if($env:COVERALLS_REPO_TOKEN) { .\packages\coveralls.net.0.5.0\csmacnz.Coveralls.exe --opencover -i opencoverCoverage.xml --repoToken $env:COVERALLS_REPO_TOKEN --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_JOB_ID }
artifacts:
- path: src\PostalCodes\bin\*\*.nupkg
name: NuGet
- path: src\PostalCodes\bin\*\*.dll
name: Dlls
- path: src\PostalCodes.Documentation\Help\*.chm
name: Documentation
deploy:
- provider: NuGet
api_key:
secure: DK9YLl9zwAwoGGPvu+Sf25PN9lLuiIUJgJ/hXXfJiTUNr5FVSIDuio5/Ncl2suLY
skip_symbols: true
artifact: NuGet
on:
branch: /release/.*/
- provider: GitHub
release: $(VERSION_FROM_BRANCH)
auth_token:
secure: WU3IlQqOmPsEQ5Gsmj9MMBMdwNynLhxuBBK5C1SiPBygO78NcehvQw92TOfDkEq0
artifact: Dlls, Documentation
on:
branch: /release/.*/
notifications:
- provider: HipChat
room: MSW Logistics Quoting and Planning
auth_token:
secure: Bom1JR9YuKXK/fN7SW+R0LMb6KqYZEo2dJDnuoMxdfU=
on_build_success: true
on_build_failure: true
on_build_status_changed: false