Created
April 1, 2009 22:49
-
-
Save guilhermechapiewski/88931 to your computer and use it in GitHub Desktop.
This script is used to execute a build on Integrity (http://integrityapp.com) every time there is a git push.
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment