Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use script to handle the commitlint logic
This script was already used on Dredd Transactions, but I forgot it's there. Porting it to Dredd as well as it's smart and convenient.
- Loading branch information
1 parent
018effa
commit af15982
Showing
3 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/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" ]; then | ||
git remote set-branches origin master | ||
git fetch --unshallow --quiet | ||
git checkout master --quiet | ||
git checkout - --quiet | ||
./node_modules/.bin/commitlint-travis | ||
else | ||
./node_modules/.bin/commitlint --from=master | ||
fi |