From f134fe5e86d2184893c98e4eb692b9398df0cd35 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 20 May 2020 17:09:28 +0530 Subject: [PATCH] ci: Add commitlint to travis CI Added commitlint tool to travis CI to test the commit messages. Signed-off-by: Madhu Rajanna --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 598ed5ed3..b5dabc206 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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