Skip to content

Commit

Permalink
Added markdown-link-check to travis to highlight any deadlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
garethahealy committed Aug 9, 2019
1 parent 5b6cf47 commit 3765b11
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ language: python
python:
- "3.7"

addons:
apt:
packages:
- nodejs
- npm

cache:
directories:
- $HOME/.cache/pip
Expand All @@ -23,8 +29,12 @@ install:
#- pip install "ansible-lint<4.0" yamllint flake8 molecule docker "pytest<3.10" "testinfra==3.0.4"
# Configure OpenShift Binary
- sudo wget -qO- ${OC_BINARY_URL} | sudo tar -xvz -C /bin
# Install hyperlink checker
- npm install -g markdown-link-check

before_script:
# Check for dead-links in the docs
- find . -type f -name "*.md" -exec markdown-link-check --quiet --config linkcheck-config.json {} \;
# Configure Docker
- sudo service docker stop
- sudo mkdir -p /etc/docker
Expand Down
7 changes: 7 additions & 0 deletions linkcheck-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ignorePatterns": [
{
"pattern": ".*.apps.example.com\/.*"
}
]
}

0 comments on commit 3765b11

Please sign in to comment.