Fix gulp versions (#9916)

This commit is contained in:
Reece Dunham 2019-06-25 13:42:52 -04:00 committed by Travis Plunk
parent e3d8131390
commit 0f46b25c99

View file

@ -13,16 +13,15 @@ Describe 'Common Tests - Validate Markdown Files' -Tag 'CI' {
Push-Location $psscriptroot Push-Location $psscriptroot
$skip = $false $skip = $false
$NpmInstalled = "not installed" $NpmInstalled = "not installed"
if (Get-Command -Name 'npm' -ErrorAction SilentlyContinue) if (Get-Command -Name 'yarn' -ErrorAction SilentlyContinue)
{ {
$NpmInstalled = "Installed" $NpmInstalled = "Installed"
Write-Verbose -Message "NPM is checking Gulp is installed. This may take a few moments." -Verbose Write-Verbose -Message "Checking if Gulp is installed. This may take a few moments." -Verbose
start-nativeExecution { yarn } start-nativeExecution { yarn }
start-nativeExecution { yarn add gulp@4.0.0 }
if(!(Get-Command -Name 'gulp' -ErrorAction SilentlyContinue)) if(!(Get-Command -Name 'gulp' -ErrorAction SilentlyContinue))
{ {
start-nativeExecution { start-nativeExecution {
sudo yarn global add 'gulp@4.0.0' sudo yarn global add 'gulp@4.0.2'
} }
} }
if(!(Get-Command -Name 'node' -ErrorAction SilentlyContinue)) if(!(Get-Command -Name 'node' -ErrorAction SilentlyContinue))
@ -37,7 +36,7 @@ Describe 'Common Tests - Validate Markdown Files' -Tag 'CI' {
For now we will skip, and write a warning. Work to resolve this is tracked in: For now we will skip, and write a warning. Work to resolve this is tracked in:
https://github.com/PowerShell/PowerShell/issues/3429 https://github.com/PowerShell/PowerShell/issues/3429
#> #>
Write-Warning "Node and npm are required to run this test" Write-Warning "Node and yarn are required to run this test"
$skip = $true $skip = $true
} }