view INSTALL.sh @ 232:ec60fe53c36c

use our own gitpoller; the one included in buildbot does not work with e.g. git 1.6.3
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 21 Dec 2011 16:29:36 -0800
parents 13a2a66b1c41
children 042507e2bbe3
line wrap: on
line source

#!/usr/bin/bash

# installation script for autobot, the A*Team buildbot
# install using
# curl http://k0s.org/mozilla/hg/autobot/raw-file/tip/INSTALL.sh | bash

REPO='http://k0s.org/mozilla/hg/autobot'

# destination
DEST='autobot' # name of the virtualenv
if [ "$#" != "0" ]
then
    DEST=$1
fi

# make a virualenv
if which virtualenv
then
    virtualenv ${DEST}
else
    curl https://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py | python - ${DEST}
fi
cd ${DEST}
. bin/activate # linux only

# checkout the repository
mkdir src
cd src
hg clone ${REPO}
cd autobot
python setup.py develop

# now you can run `create-autobot` to get a testing bot!