Skip to content

Commit

Permalink
Trying a script found in an AppVeyor issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstebo committed Jan 2, 2019
1 parent f00406c commit 777878b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@ cache:
- packages -> **\packages.config

install:
- ps: choco install gitversion.portable -y --version 3.6.5
# - ps: choco install gitversion.portable -y
- ps: >-
Write-Host "Installing GitVersion 3.6.5..." -ForegroundColor Cyan
$gvPath = "$env:SYSTEMDRIVE\Tools\GitVersion"
if(Test-Path $gvPath) {
del $gvPath -Recurse -Force
}
$tempPath = "$env:USERPROFILE\GitVersion"
nuget install gitversion.commandline -version 3.6.5 -excludeversion -outputdirectory $tempPath
[IO.Directory]::Move("$tempPath\gitversion.commandline\tools", $gvPath)
del $tempPath -Recurse -Force
Add-Path $gvPath
Write-Host "GitVersion 3.6.5 installed" -ForegroundColor Green
assembly_info:
patch: true
Expand Down

0 comments on commit 777878b

Please sign in to comment.