mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 08:10:20 +00:00
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:
parent
9fe7d1612e
commit
f134fe5e86
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user