mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-07 05:51:38 +00:00
ci: check if commit message contains fixup on travis
This commit is contained in:
parent
e3b674a42e
commit
30a267c83d
@ -33,6 +33,7 @@ script:
|
|||||||
- pipenv run make style_check
|
- pipenv run make style_check
|
||||||
- pipenv run make defs_check
|
- pipenv run make defs_check
|
||||||
- pipenv run make gen_check
|
- pipenv run make gen_check
|
||||||
|
- ci/check_fixup.sh
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks:
|
webhooks:
|
||||||
|
12
ci/check_fixup.sh
Executable file
12
ci/check_fixup.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
git fetch origin master:master # on CIs it is common to fetch only the current branch
|
||||||
|
|
||||||
|
messages=$(git log --format=%s master..) # commit messages between this branch and master
|
||||||
|
|
||||||
|
if [[ $messages =~ "fixup!" ]]; then
|
||||||
|
echo 'Failure: Some commit message contains "fixup!" string.'
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo 'Success: No commit messages containing "fixup!" string.'
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user