4
LOCAL_REPO=$(readlink -f $1) # Path to the local repo: gogo/src/github.com/foo
5
REMOTE_REPO=$(echo "$LOCAL_REPO" | sed -e 's,.*/src/,,')
7
: ${CI_TOOLS=$(readlink -f $(dirname $0))}
8
CLOUD_CITY=$(readlink -f $CI_TOOLS/../cloud-city)
10
while [[ "${1-}" != "" ]]; do
14
CLOUD_CITY=$(readlink -f $1)
22
OLD_HASH=$(git log --first-parent -1 --pretty=format:%h)
23
source $CLOUD_CITY/juju-bot.txt
24
git pull https://$github_user:$github_password@$REMOTE_REPO.git master
25
NEW_HASH=$(git log --first-parent -1 --pretty=format:%h)
26
if [[ $OLD_HASH == $NEW_HASH ]]; then
27
echo "Nothing to test."
30
echo "A new revision can be tested."
32
echo "Updating all go deps."