forked from wenhao/jpa-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wenhao] increase unit test coverage.
- Loading branch information
Showing
5 changed files
with
11 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Color codes | ||
red='\033[0;31m' | ||
yellow='\033[0;33m' | ||
blue='\033[0;34m' | ||
NC='\033[0m' # No colors | ||
|
||
# Regex & Usage | ||
commit_regex="^(\[\S+(\s\&\s\S+)*\]|merge)\s" | ||
error_message="Aborting commit. Commit message must start with [YOUR NAME]." | ||
usage="[YOUR NAME] Commit Message." | ||
|
||
if ! grep -qE "$commit_regex" "$1"; then | ||
printf "${red}$error_message\n" | ||
printf "${yellow}Commit Regex: ${NC}${commit_regex}\n" | ||
printf "${red}Usage: ${NC}${usage}\n" | ||
printf "error_message\n" | ||
printf "Commit Regex: ${commit_regex}\n" | ||
printf "Usage: ${usage}\n" | ||
exit 1 | ||
fi |
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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Color codes | ||
red='\033[0;31m' | ||
yellow='\033[0;33m' | ||
|
||
command="./gradlew build" | ||
|
||
${command} | ||
|
||
if ! [ $? -eq 0 ]; then | ||
printf "${red}Make sure successfully execute command: ${yellow}$command${red}." | ||
printf "Make sure successfully execute command: $command." | ||
exit 1 | ||
fi |
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