Skip to content

Commit

Permalink
Removing build script tests and fixing the build issue caused by an A…
Browse files Browse the repository at this point in the history
…ppVeyor breaking change
  • Loading branch information
neilcampbell committed Dec 7, 2014
1 parent 59463a6 commit bc76ea2
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Build/Setup-Build-Environment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ param (
)

$BuildNumber = $env:APPVEYOR_BUILD_NUMBER
$Branch = $env:APPVEYOR_REPO_BRANCH
$IsTagBuild = $env:APPVEYOR_REPO_TAG

$PactNetVersion
$PactNetAssemblyVersion

if($IsTagBuild -eq 'True')
{
$PactNetVersion = "$Branch"
$PactNetAssemblyVersion = ($Branch -replace "[^0-9,.]", '') + ".$BuildNumber"
$TagName = $env:APPVEYOR_REPO_TAG_NAME #was APPVEYOR_REPO_BRANCH
$PactNetVersion = "$TagName"
$PactNetAssemblyVersion = ($TagName -replace "[^0-9,.]", '') + ".$BuildNumber"
}
else
{
Expand All @@ -22,8 +22,5 @@ else
$env:PACTNET_VERSION = $PactNetVersion
$env:PACTNET_ASSEMBLY_VERSION = $PactNetAssemblyVersion

Write-Host "env:PACTNET_VERSION = $PactNetVersion"
Write-Host "env:PACTNET_ASSEMBLY_VERSION = $PactNetAssemblyVersion"

Write-Host "### Printing local environment variables ###"
Write-Host (Get-ChildItem Env: | Format-List | Out-String)
Write-Host "Set env:PACTNET_VERSION = $PactNetVersion"
Write-Host "Set env:PACTNET_ASSEMBLY_VERSION = $PactNetAssemblyVersion"

0 comments on commit bc76ea2

Please sign in to comment.