Skip to content

Commit

Permalink
fixup! build: add Travis job to check for dead URL links
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlau committed Apr 18, 2019
1 parent 2bdc627 commit 2c15115
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,20 @@ jobs:
- NODE=$(which node) make lint lint-py

- name: "Docs"
if: type = pull_request
language: node_js
node_js: "node"
install:
- pyenv global 2.7.15
- make doc-only
- npm install -g linkinator
script:
- linkinator out/doc/api -r
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
DOC_FILES=`curl -sL https://github.com/nodejs/node/pull/${TRAVIS_PULL_REQUEST}.patch | grep -o '\bdoc/api/.*\.md\b'`
if [ -n "${DOC_FILES}" ]; then
linkinator out/doc/api -r;
fi
fi

- name: "First commit message adheres to guidelines at <a href=\"https://goo.gl/p2fr5Q\">https://goo.gl/p2fr5Q</a>"
if: type = pull_request
Expand Down

0 comments on commit 2c15115

Please sign in to comment.