Skip to content

Commit 7912f0d

Browse files
committed
[qa] Added commit message style check
1 parent febebbc commit 7912f0d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ before_script:
2626

2727
script:
2828
- nosetests --with-coverage --cover-package=netjsonconfig
29+
- |
30+
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
31+
# gets commit message of last commit before pull request merge
32+
COMMIT_MESSAGE=$(git log $TRAVIS_PULL_REQUEST_SHA --format=%B -n 1)
33+
printf "Checking commit message:\n\n"
34+
printf "$COMMIT_MESSAGE\n\n"
35+
checkcommit --message "$COMMIT_MESSAGE"
36+
fi
2937
3038
after_success:
3139
coveralls

requirements-test.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ isort
55
flake8
66
sphinx
77
sphinx_rtd_theme
8+
# commit message style check
9+
openwisp-utils>=0.2.1

0 commit comments

Comments
 (0)