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 868 B

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