Update GitVersion.yml to V4

This commit is contained in:
Michael Croes
2019-03-14 22:45:18 +01:00
parent ae620f3c62
commit 98df02d7d4
2 changed files with 9 additions and 5 deletions

View File

@@ -4,14 +4,18 @@ branches:
master:
tag: rc
increment: Minor
features?[/-]:
feature:
regex: features?[/-]
tag: rc-{BranchName}
increment: Minor
(pull|pull\-requests|pr)[/-]:
pull-request:
regex: (pull|pull\-requests|pr)[/-]
tag: rc-pr-{BranchName}
increment: Minor
hotfix(es)?[/-]:
hotfix:
regex: hotfix(es)?[/-]
tag: rc
increment: Patch
dev(elop)?(ment)?$:
develop:
regex: dev(elop)?(ment)?$
tag: b

View File

@@ -3,7 +3,7 @@ configuration: Release
install:
- choco install gitversion.portable -y
before_build:
- cmd: gitversion /l console /output buildserver /b %APPVEYOR_REPO_BRANCH%
- cmd: gitversion /l console /output buildserver
- nuget restore
build_script:
msbuild /nologo /v:m /p:AssemblyVersion=%GitVersion_AssemblySemVer% /p:FileVersion=%GitVersion_MajorMinorPatch% /p:InformationalVersion=%GitVersion_InformationalVersion% /p:Configuration=%CONFIGURATION% S7.sln