-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: add Travis job to check for dead URL links #27267
Changes from all commits
2bdc627
2c15115
f6dbf75
3ed6684
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -77,6 +77,22 @@ jobs: | |||||
script: | ||||||
- 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: | ||||||
- 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'`; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Refs: https://stackoverflow.com/questions/41145041/list-files-modified-in-a-pull-request-within-travis There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we had trouble with commit message linting before with |
||||||
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 | ||||||
language: node_js | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant because of
node/.travis.yml
Line 81 in 3ed6684