#!/bin/bash
# Validates format of the commit messages on Travis CI


set -e # aborts as soon as anything returns non-zero exit status


git remote set-branches origin master
git fetch --unshallow --quiet
git checkout master --quiet
git checkout - --quiet

./node_modules/.bin/commitlint --from=master --to="$TRAVIS_COMMIT"

#!/bin/bash
# Validates format of the commit messages on Travis CI


set -e # aborts as soon as anything returns non-zero exit status


if [ ! -z "$TRAVIS_COMMIT" ]; then
    git remote set-branches origin master
    git fetch --unshallow --quiet
    git checkout master --quiet
    git checkout - --quiet
    ./node_modules/.bin/commitlint --from=master --to="$TRAVIS_COMMIT"
else
    ./node_modules/.bin/commitlint --from=master
fi

Make npm run lint worky locally
chore: Make npm run lint worky locally
