Skip to content

Commit

Permalink
Fix issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleid committed Feb 10, 2020
1 parent fd6d1e0 commit 0183abb
Showing 1 changed file with 26 additions and 19 deletions.
45 changes: 26 additions & 19 deletions unittest/2_act/Install-AutToolset.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,29 @@ param (
[string]$unittestFolder ="unittest"
)

Set-Location "$solutionPath\$unittestFolder\2_act" |
Out-Null

# Windows - get nuget.exe from https://www.nuget.org/downloads
Write-Verbose "001 - Download nuget.exe"
Invoke-WebRequest `
-Uri https://dist.nuget.org/win-x86-commandline/latest/nuget.exe `
-OutFile nuget.exe |
Out-Null

# Install ASA CI/CD package from nuget
Write-Verbose "002 - Install ASA.CICD nuget package"
Invoke-Expression "./nuget install Microsoft.Azure.StreamAnalytics.CICD -version $ASAnugetVersion" |
Out-Null

# Install jsondiffpatch from npm
Write-Verbose "003 - Install jsondiffpatch npm package"
Invoke-Expression "npm install -g jsondiffpatch" |
Out-Null
$actPath = "$solutionPath\$unittestFolder\2_act"

if (Test-Path $actPath)
{
Set-Location $actPath

# Windows - get nuget.exe from https://www.nuget.org/downloads
Write-Verbose "001 - Download nuget.exe"
Invoke-WebRequest `
-Uri https://dist.nuget.org/win-x86-commandline/latest/nuget.exe `
-OutFile nuget.exe |
Out-Null

# Install ASA CI/CD package from nuget
Write-Verbose "002 - Install ASA.CICD nuget package"
Invoke-Expression "./nuget install Microsoft.Azure.StreamAnalytics.CICD -version $ASAnugetVersion" |
Out-Null

# Install jsondiffpatch from npm
Write-Verbose "003 - Install jsondiffpatch npm package"
Invoke-Expression "npm install -g jsondiffpatch" |
Out-Null
}
else {
throw("The path provided is not valid: $actPath")
}

0 comments on commit 0183abb

Please sign in to comment.