Skip to content

Commit

Permalink
Added appveyor and GitVersion configs to the solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintSkeeta committed Sep 9, 2017
1 parent 37e6080 commit a1e8dfb
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GitVersionConfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
assembly-versioning-scheme: MajorMinorPatch
mode: ContinuousDeployment
branches: {}
2 changes: 2 additions & 0 deletions Hedgehog.TDS.BuildExtensions.GitDeltaDeploy.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Project("{CAA73BB0-EF22-4D79-A57E-DF67B3BA9C80}") = "TDS.Master", "src\TDS.Maste
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".config", ".config", "{2B59F261-BB42-42C8-80A9-566B953A3D2C}"
ProjectSection(SolutionItems) = preProject
appveyor.yml = appveyor.yml
GitVersionConfig.yml = GitVersionConfig.yml
src\_Nuget\Hedgehog.TDS.BuildExtensions.GitDeltaDeploy.nuspec = src\_Nuget\Hedgehog.TDS.BuildExtensions.GitDeltaDeploy.nuspec
src\_Nuget\build\Hedgehog.TDS.BuildExtensions.GitDeltaDeploy.targets = src\_Nuget\build\Hedgehog.TDS.BuildExtensions.GitDeltaDeploy.targets
nuget.config = nuget.config
Expand Down
50 changes: 50 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
install:
- choco install gitversion.portable -pre -y
- nuget sources add -Name MyAccountFeed -Source https://ci.appveyor.com/nuget/seanholmesby-a4t5wrp1ias0 -UserName %nuget_user% -Password %nuget_password%

nuget:
account_feed: false

#---------------------------------#
# build configuration #
#---------------------------------#

# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU

# build Configuration, i.e. Debug, Release, etc.
configuration:
- Debug
- Release

before_build:
- nuget restore Hedgehog.TDS.BuildExtensions.GitDeltaDeploy.sln
- ps: gitversion /l console /output buildserver /updateAssemblyInfo

build_script:
- cmd: msbuild Hedgehog.TDS.BuildExtensions.GitDeltaDeploy.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:normal /p:PackageVersion=%GitVersion_SemVer%

after_build:
- cmd: nuget pack "src\_Nuget\Hedgehog.TDS.BuildExtensions.GitDeltaDeploy.nuspec" -version "%GitVersion_SemVer%"

#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:

- path: src\_NuGet\*.nupkg
- path: src\Hedgehog.TDS.BuildExtensions.GitDeltaDeploy\bin\*\Hedgehog.TDS.BuildExtensions.GitDeltaDeploy*

#---------------------------------#
# deploy configuration #
#---------------------------------#
deploy:
description: 'Hedgehog.TDS.Extensions.GitDeltaDeploy'
provider: GitHub
auth_token:
secure: vMfLJBfd7tN7ijjHaiJ1DSbqJzKP7M0i0zJ4k2SSFPj/t+vl9Kp+jFPt/wExjXOa # your encrypted token from GitHub
artifact: /.*\.nupkg/
draft: false
prerelease: false
on:
appveyor_repo_tag: true # deploy on tag push only

0 comments on commit a1e8dfb

Please sign in to comment.