build: lint commit message in separate Travis job
Move the first commit message linting to a separate Travis job. Run the script in bash debug mode to capture any issues communicating with the GitHub API (e.g. network issues, rate limits). PR-URL: https://github.com/nodejs/node/pull/24254 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Matheus Marchini <mat@mmarchini.me>
This commit is contained in:
Родитель
b5420c9577
Коммит
19e5e78e9c
12
.travis.yml
12
.travis.yml
|
@ -4,6 +4,14 @@ cache: ccache
|
|||
os: linux
|
||||
matrix:
|
||||
include:
|
||||
- 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
|
||||
node_js: "node"
|
||||
script:
|
||||
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
|
||||
bash -x tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST};
|
||||
fi
|
||||
- name: "Linter"
|
||||
language: node_js
|
||||
node_js: "node"
|
||||
|
@ -11,10 +19,6 @@ matrix:
|
|||
- NODE=$(which node)
|
||||
script:
|
||||
- make lint
|
||||
# Lint the first commit in the PR.
|
||||
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
|
||||
bash tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST} || true;
|
||||
fi
|
||||
- name: "Test Suite"
|
||||
addons:
|
||||
apt:
|
||||
|
|
Загрузка…
Ссылка в новой задаче