Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Novotny committed May 23, 2018
1 parent de615a8 commit e7bebe2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Rx.NET/Source/build-new.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition

$configuration = "Release"
$configuration = $Env:BuildConfiguration

$isAppVeyor = ((Test-Path -Path env:\APPVEYOR) -Or (Test-Path -Path env:\TF_BUILD))
$isCloudBuild = Test-Path -Path env:\TF_BUILD
$outputLocation = Join-Path $scriptPath "testResults"
$openCoverPath = ".\packages\OpenCover\tools\OpenCover.Console.exe"
$xUnitConsolePath = ".\packages\xunit.runner.console\tools\net452\xunit.console.exe"
Expand Down Expand Up @@ -46,7 +46,7 @@ Write-Host "Building $scriptPath\System.Reactive.sln" -Foreground Green
msbuild "$scriptPath\System.Reactive.sln" /restore /t:build /m /p:Configuration=$configuration /p:CreatePackage=true /p:NoPackageAnalysis=true
if ($LastExitCode -ne 0) {
Write-Host "Error with build" -Foreground Red
if($isAppVeyor) {
if($isCloudBuild) {
$host.SetShouldExit($LastExitCode)
exit $LastExitCode
}
Expand All @@ -68,7 +68,7 @@ if($hasSignClientSecret) {

if ($LastExitCode -ne 0) {
Write-Host "Error signing $nupkg" -Foreground Red
if($isAppVeyor) {
if($isCloudBuild) {
$host.SetShouldExit($LastExitCode)
exit $LastExitCode
}
Expand All @@ -91,14 +91,14 @@ $dotnet = "$env:ProgramFiles\dotnet\dotnet.exe"

if ($LastExitCode -ne 0) {
Write-Host "Error with tests" -Foreground Red
if($isAppVeyor) {
if($isCloudBuild) {
$host.SetShouldExit($LastExitCode)
exit $LastExitCode
}
}

# Either display or publish the results
if ($isAppVeyor -eq 'True')
if ($isCloudBuild -eq 'True')
{
.\packages\coveralls.io.dotcover\tools\coveralls.net.exe -f -p DotCover "$outputFile"
}
Expand Down

0 comments on commit e7bebe2

Please sign in to comment.