Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .vsts-ci/misc-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ jobs:
condition: succeededOrFailed()

- bash: |
# Installing globally with yarn is a pain, please don't try
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
sudo yarn global add markdown-spellcheck@0.11.0
displayName: Install mdspell
condition: succeededOrFailed()

Expand Down
15 changes: 0 additions & 15 deletions test/common/markdown/cleanup.ps1

This file was deleted.

9 changes: 4 additions & 5 deletions test/common/markdown/markdown-link.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ Describe "Verify Markdown Links" {
{
Write-Verbose "installing markdown-link-check ..." -Verbose
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
sudo yarn global add markdown-link-check@3.7.2
}
}

Expand Down Expand Up @@ -49,7 +47,7 @@ Describe "Verify Markdown Links" {
$jobs.add($group.name,$job)
}

Write-Verbose -verbose "Getting and printing results ..."
Write-Verbose -verbose "Getting results ..."
# Get the results and verify
foreach($key in $jobs.keys)
{
Expand Down Expand Up @@ -105,7 +103,8 @@ Describe "Verify Markdown Links" {
if($url -match '^http(s)?:')
{
# If invoke-WebRequest can handle the URL, re-verify, with 5 retries
try{
try
{
$null = Invoke-WebRequest -uri $url -RetryIntervalSec 3 -MaximumRetryCount 6
}
catch
Expand Down
5 changes: 1 addition & 4 deletions test/common/markdown/markdown.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ Describe 'Common Tests - Validate Markdown Files' -Tag 'CI' {
if(!(Get-Command -Name 'gulp' -ErrorAction SilentlyContinue))
{
start-nativeExecution {
# Installing globally with yarn is a pain, please don't try it
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
sudo yarn global add 'gulp@4.0.0'
}
}
if(!(Get-Command -Name 'node' -ErrorAction SilentlyContinue))
Expand Down
3 changes: 2 additions & 1 deletion test/common/markdown/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "powershell.common.markdown.tests",
"private": true,
"version": "1.0.0",
"description": "The PowerShell Common MarkDown Tests.",
"description": "The PowerShell Common Markdown Tests.",
"main": "gulpfile.js",
"dependencies": {
"gulp": "^4.0.2",
Expand Down