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.

appveyor.yml 913 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
12345678910111213141516171819202122232425262728293031
  1. install:
  2. - ps: |
  3. Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
  4. Install-Module platyPS -Force
  5. Install-Module MarkdownLinkCheck -Force
  6. Install-Module NTFSSecurity -Force
  7. Import-Module platyPS
  8. Import-Module MarkdownLinkCheck
  9. init:
  10. - ps: git config --global core.autocrlf true
  11. build_script:
  12. - ps: Import-Module -Force NTFSSecurity
  13. test_script:
  14. - ps: |
  15. $ErrorActionPreference = 'Stop'
  16. # 01. Test that documentation is up-to-date
  17. Update-MarkdownHelp -Path ./Docs/Cmdlets
  18. $Diff = git diff
  19. if ($Diff) {
  20. throw "Help is not up-to-date, run Update-MarkdownHelp: $diff"
  21. }
  22. # 02. Verify hyperlinks
  23. $BrokenLinks = Get-MarkdownLink -Path .\Docs\ -BrokenOnly
  24. if ($brokenLinks) {
  25. throw "Found broken hyperlinks $brokenLinks"
  26. }