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:
Andreas Stallinger
2016-03-07 16:58:57 +01:00
parent fec17e452d
commit d431161fbb
9 changed files with 129 additions and 14 deletions
+1 -1
View File
@@ -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
View File
@@ -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"