ci: Add commitlint to travis CI

Added commitlint tool to travis CI
to test the commit messages.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-05-20 17:09:28 +05:30 committed by mergify[bot]
parent 9fe7d1612e
commit f134fe5e86

View File

@ -79,7 +79,13 @@ jobs:
# install helm for helm lint
- curl -L https://git.io/get_helm.sh
| bash -s -- -v "${HELM_VERSION}"
# yamllint disable rule:line-length
- mkdir -p /opt/commitlint && pushd /opt/commitlint
&& npm init -y && npm install --save-dev @commitlint/travis-cli && popd
# yamllint enable rule:line-length
- export PATH=/opt/commitlint/node_modules/.bin:$PATH
script:
- commitlint-travis
- make go-lint
- make lint-extras
- make gosec