script: test enforced push to master
enforced building and test with a pre-push hook IMPORTANT: cmake is needed in PATH
This commit is contained in:
@@ -77,7 +77,7 @@ fi
|
||||
|
||||
# Prepare publish message with commit messages
|
||||
GIT_DIR=$(git rev-parse --show-toplevel)/.git
|
||||
cat $GIT_DIR/../.git_commit_template.txt > $GIT_DIR/PUBLISH_MSG
|
||||
cat $GIT_DIR/../setup/git/git_commit_template.txt > $GIT_DIR/PUBLISH_MSG
|
||||
printf "\n# commits:\n" >> $GIT_DIR/PUBLISH_MSG
|
||||
git log --graph --format=%B $BASE_COMMIT..HEAD | sed 's/^/# &/' >> $GIT_DIR/PUBLISH_MSG
|
||||
|
||||
|
||||
+3
-3
@@ -21,10 +21,10 @@ cd $MY_PATH/..
|
||||
# git settings
|
||||
echo -e $INFO "install git settings"
|
||||
|
||||
git config commit.template .git_commit_template.txt
|
||||
git config commit.template setup/git/git_commit_template.txt
|
||||
git config color.ui true
|
||||
cp .git_pre_commit_hook.sh .git/hooks/pre-commit
|
||||
|
||||
cp setup/git/git_pre_commit_hook.sh .git/hooks/pre-commit
|
||||
cp setup/git/git_pre_push_hook.sh .git/hooks/pre-push
|
||||
|
||||
# Create Debug and Release folders
|
||||
echo -e $INFO "create build folders"
|
||||
|
||||
Reference in New Issue
Block a user