Remove directory causing static analysis failure (#8812)

Remove directory causing static analysis failure
This commit is contained in:
Travis Plunk 2019-02-01 18:03:12 -08:00 committed by GitHub
parent 3fbf488668
commit 003a141f31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View File

@ -39,6 +39,8 @@ phases:
- bash: |
sudo npm install -g markdown-spellcheck@0.11.0
# Sometimes this folder is left behind with root permissions and is needed by later NPM installs which don't need sudo
sudo rm -rf ~/.npm/_cacache
displayName: Install mdspell
condition: succeededOrFailed()

View File

@ -7,7 +7,11 @@ Describe "Verify Markdown Links" {
if(!(Get-Command -Name 'markdown-link-check' -ErrorAction SilentlyContinue))
{
Write-Verbose "installing markdown-link-check ..." -Verbose
start-nativeExecution { sudo npm install -g markdown-link-check@3.7.2 }
start-nativeExecution {
sudo npm install -g markdown-link-check@3.7.2
# Sometimes this folder is left behind with root permissions and is needed by later NPM installs which don't need sudo
sudo rm -rf ~/.npm/_cacache
}
}
if(!(Get-Module -Name 'ThreadJob' -ListAvailable -ErrorAction SilentlyContinue))

View File

@ -21,7 +21,11 @@ Describe 'Common Tests - Validate Markdown Files' -Tag 'CI' {
start-nativeExecution { npm install 'gulp@4.0.0' --silent }
if(!(Get-Command -Name 'gulp' -ErrorAction SilentlyContinue))
{
start-nativeExecution { sudo npm install -g 'gulp@4.0.0' --silent }
start-nativeExecution {
sudo npm install -g 'gulp@4.0.0' --silent
# Sometimes this folder is left behind with root permissions and is needed by later NPM installs which don't need sudo
sudo rm -rf ~/.npm/_cacache
}
}
if(!(Get-Command -Name 'node' -ErrorAction SilentlyContinue))
{