mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2026-02-17 14:28:25 +08:00
Merge pull request #158 from mycroes/feature/ci
Add AppVeyor and GitVersion configuration
This commit is contained in:
17
GitVersion.yml
Normal file
17
GitVersion.yml
Normal 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
13
appveyor.yml
Normal 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\*.*
|
||||
Reference in New Issue
Block a user