public

This script is used to execute a build on Integrity (http://integrityapp.com) every time there is a git push.

  • Download Gist
execute_builds_on_git_push.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash
 
FILE=vinagrette.last_commit.id
LAST_COMMIT=`cat $FILE`
ACTUAL_COMMIT=`git ls-remote git://git.globoi.com/vinagrette/mainline.git master | cut -f1`
 
if [ "$ACTUAL_COMMIT" != "$LAST_COMMIT" ]; then
wget http://macaco.globoi.com/vinagrette/builds --post-data="" -t 1 -q
wget http://macaco.globoi.com/vinagrette-acceptancetests/builds --post-data="" -t 1 -q
fi
 
echo $ACTUAL_COMMIT > $FILE
sleep 5

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.