Merge pull request #158 from mycroes/feature/ci

Add AppVeyor and GitVersion configuration
This commit is contained in:
Michael Croes
2018-07-09 19:57:06 +02:00
committed by GitHub
2 changed files with 30 additions and 0 deletions

17
GitVersion.yml Normal file
View File

@@ -0,0 +1,17 @@
assembly-informational-format: '{NuGetVersion}'
mode: ContinuousDeployment
branches:
master:
tag: rc
increment: Minor
features?[/-]:
tag: rc-{BranchName}
increment: Minor
(pull|pull\-requests|pr)[/-]:
tag: rc-pr-{BranchName}
increment: Minor
hotfix(es)?[/-]:
tag: rc
increment: Patch
dev(elop)?(ment)?$:
tag: b

13
appveyor.yml Normal file
View File

@@ -0,0 +1,13 @@
image: Visual Studio 2017
configuration: Release
install:
- choco install gitversion.portable -y
before_build:
- cmd: gitversion /l console /output buildserver /b %APPVEYOR_REPO_BRANCH%
- 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
after_build:
- dotnet pack S7.Net -c %CONFIGURATION% /p:Version=%GitVersion_NuGetVersion% --no-build -o ..\artifacts
artifacts:
- path: artifacts\*.*