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.
 
 

30 lines
899 B

  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\NTFSSecurity\NTFSSecurity.psm1
  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. }