You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
961 B

7 years ago
install:
- ps: |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module platyPS -Force
Install-Module MarkdownLinkCheck -Force
7 years ago
Install-Module NTFSSecurity -Force
7 years ago
Import-Module platyPS
Import-Module MarkdownLinkCheck
init:
- ps: git config --global core.autocrlf true
build_script:
7 years ago
- ps: Import-Module -Force NTFSSecurity
7 years ago
test_script:
- ps: |
$ErrorActionPreference = 'Stop'
# 01. Test that documentation is up-to-date
Update-MarkdownHelp -Path ./Docs/Cmdlets
7 years ago
$Diff = git diff
if ($Diff) {
throw "Help is not up-to-date, run Update-MarkdownHelp: $diff"
}
# 02. Verify hyperlinks
$BrokenLinks = Get-MarkdownLink -Path ./Docs -BrokenOnly
7 years ago
if ($brokenLinks) {
7 years ago
#throw "Found broken hyperlinks $brokenLinks"
7 years ago
$dir = pwd
throw "$pwd"
7 years ago
}