Permalink
Browse files

Merge pull request #300 from erikbra/AppVeyor-gitversion

Add GitVersion-config
  • Loading branch information...
BiggerNoise committed Nov 12, 2017
2 parents bd238e0 + ef59cc1 commit 133d0d95d9e651f3bfa454d45e76e0df3f6424bc
Showing with 25 additions and 9 deletions.
  1. +8 −0 GitVersion.yml
  2. +15 −7 appveyor.yml
  3. +2 −2 build.ps1
@@ -0,0 +1,8 @@
assembly-versioning-scheme: None
mode: ContinuousDelivery
branches:
master:
mode: ContinuousDelivery
tag: pre
ignore:
sha: []
@@ -1,13 +1,21 @@
version: 1.0.{build}
image: Visual Studio 2017
install:
- choco install gitversion.portable -pre -y
before_build:
- ps: gitversion /l console /output buildserver
build_script:
- ps: .\build.ps1
- ps: .\build.ps1
test:
assemblies:
only:
- '**\*tests.dll'
- '**\*tests.dll'
artifacts:
- path: .\code_drop\packages\*.nupkg
name: Nuget packages
- path: .\code_drop\log\*
name: Logs
- path: .\code_drop\packages\*.nupkg
name: Nuget packages
- path: .\code_drop\log\*
name: Logs
@@ -1,4 +1,4 @@
#!/usr/bin/env powershell
#!/usr/bin/env pwsh
$MSBUILD=msbuild
@@ -19,7 +19,7 @@ pushd $root
$gitVersion = (GitVersion | ConvertFrom-Json)
If ($onAppVeyor) {
$newVersion="$($gitVersion.FullSemVer).$env:APPVEYOR_BUILD_NUMBER"
$newVersion="$($gitVersion.FullSemVer)"
Write-host " - Updating appveyor build version to: $newVersion"
$env:APPVEYOR_BUILD_VERSION="$newVersion"
appveyor UpdateBuild -Version "$newVersion"

0 comments on commit 133d0d9

Please sign in to comment.