Skip to content

Commit

Permalink
Added appveyor build
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondandy committed Sep 19, 2016
1 parent f7e0b0d commit 95375c9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
7 changes: 7 additions & 0 deletions GitVersion.yml
@@ -0,0 +1,7 @@
assembly-versioning-scheme: MajorMinorPatch
mode: ContinuousDelivery
branches:
master:
tag: ''
ignore:
sha: []
2 changes: 2 additions & 0 deletions Hunspell.NetCore.sln
Expand Up @@ -9,6 +9,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hunspell.NetCore", "src\Hun
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{312E1AA7-E8A4-4AEB-8D9D-6327A0ED57FB}"
ProjectSection(SolutionItems) = preProject
appveyor.yml = appveyor.yml
GitVersion.yml = GitVersion.yml
SharedAssemblyInfo.cs = SharedAssemblyInfo.cs
EndProjectSection
EndProject
Expand Down
24 changes: 24 additions & 0 deletions appveyor.yml
@@ -0,0 +1,24 @@
configuration: Release
platform: Any CPU

install:
- choco install gitversion.portable -pre -y

assembly_info:
patch: false

before_build:
- nuget restore
- ps: gitversion /l console /output buildserver /updateAssemblyInfo SharedAssemblyInfo.cs
- ps: |
$jsonpath = 'src/Hunspell.NetCore/project.json'
$json = Get-Content -Raw -Path $jsonpath | ConvertFrom-Json
$json.version = $Env:GitVersion_NuGetVersion
$json | ConvertTo-Json -depth 999 | Out-File $jsonpath
build:
project: Hunspell.NetCore.sln

after_build:
- cmd: dotnet pack src/Hunspell.NetCore -c Release
- cmd: appveyor PushArtifact "src/Hunspell.NetCore/bin/Release/Hunspell.NetCore.%GitVersion_NuGetVersion%.nupkg"

0 comments on commit 95375c9

Please sign in to comment.