[t/spec] Unfudge tests, add needed sort.
[pugs.git] / misc / buildbot / setup.sh
blobe42813edd543be8818c62cea04d46a085a806051
1 # Run this script, then create buildmaster according to directions @
2 # http://buildbot.sourceforge.net/manual-0.7.5.html#Creating-a-buildmaster
3 # Look at master.cfg for port and slave configuration
4 if [[ ! $PREFIX ]]
5 then
6 PREFIX=/usr/local
7 fi
8 echo "PREFIX is $PREFIX"
10 LOG=/tmp/buildbot.log
11 cd /tmp
12 rm -rf zope.interface-3.3.0
13 wget http://www.zope.org/Products/ZopeInterface/3.3.0/zope.interface-3.3.0.tar.gz -O - | tar -xz
14 cd zope.interface-3.3.0
15 echo "zope.interface install" | tee $LOG && \
16 python setup.py install >> $LOG
17 cd ..
19 rm -rf Twisted-2.5.0
20 wget http://tmrc.mit.edu/mirror/twisted/Twisted/2.5/Twisted-2.5.0.tar.bz2 -O - | tar -xj
22 cd Twisted-2.5.0
23 echo "Twisted-2.5.0 install (sudo)" | tee -a $LOG && \
24 sudo python setup.py install >> $LOG # had problems installing w/o su perms
25 cd ..
27 rm -rf buildbot-0.7.5
28 wget http://downloads.sourceforge.net/buildbot/buildbot-0.7.5.tar.gz -O - | tar -xz
29 cd buildbot-0.7.5
30 echo "buildbot-0.7.5 install (sudo)" | tee -a $LOG && \
31 sudo python setup.py install >> $LOG # had problems installing w/o su perms
32 echo 'import sys, os.path' > find_buildbot.py
33 echo 'if os.path.exists(os.path.join( sys.prefix, "bin", "buildbot" ) ):' >> find_buildbot.py
34 echo ' print os.path.join( sys.prefix, "bin", "buildbot" )' >> find_buildbot.py
36 echo "Creating symlink in $PREFIX" | tee -a $LOG && \
37 echo ln -s `python find_buildbot.py` $PREFIX/bin/buildbot
39 cd ..