Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pvandervelde/77bd834239d9f67c40d7 to your computer and use it in GitHub Desktop.
Save pvandervelde/77bd834239d9f67c40d7 to your computer and use it in GitHub Desktop.
nBuildKit AppVeyor environment initialization script
# Halt immediately if there is a problem
$ErrorActionPreference = "Stop"
git config --global user.email "nBuildKit.AppVeyor@example.com"
git config --global user.name "nBuildKit AppVeyor deployment"
$currentDir = $pwd
$scriptDir = "c:\projects\scripts"
$installDir = "c:\tools\githubrelease"
# clone the powershell scripts repository
git clone -q https://github.com/pvandervelde/Scripts.git $scriptDir
# 'Install' the github-release application
try
{
sl (Join-Path $scriptDir "src\ps")
.\install-github-release.ps1 -installPath $installDir
}
finally
{
sl $currentDir
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment