summaryrefslogtreecommitdiff
path: root/update_buildbot.sh
blob: c934765a6c3b43492de4520928ef28b4f917e865 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

base_dir=`pwd`
virtualenv_directory=$base_dir/sandbox
if [[ ! -d $virtualenv_directory ]]; then
    virtualenv --python=python2 $virtualenv_directory
fi

virtualenv_bin=$virtualenv_directory/bin
PATH=$virtualenv_directory/bin:$PATH

buildbot_sources=buildbot-sources
if [[ ! -d buildbot-sources/.git ]]; then
    git clone --depth 1 git://github.com/buildbot/buildbot.git $buildbot_sources
else
    cd $buildbot_sources
    git pull
    cd -
fi

cd $buildbot_sources
pip install -e master
pip install -e slave
make prebuild_frontend
cd -

buildbot stop master
buildbot upgrade-master master
buildbot start master