Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save guilhermechapiewski/88931 to your computer and use it in GitHub Desktop.
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.
#!/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