ReferencePlatforms/BuildBot/MacOSX: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
 
(→‎Buildbot Reference Install Instructions - MacOSX: added user creation instructions)
 
(7 intermediate revisions by one other user not shown)
Line 2: Line 2:


Starting point is the [[ReferencePlatforms/Mac|MacOSX Reference Platform]].
Starting point is the [[ReferencePlatforms/Mac|MacOSX Reference Platform]].
NOTE: Python 2.3.5 (#1, Aug 19 2006, 21:31:42)


== Download Twisted sources ==
== Install Python 2.5 ==
http://tmrc.mit.edu/mirror/twisted/Twisted/2.5/Twisted-2.5.0.tar.bz2
mkdir -p /tools/dist
cd /tools/dist
wget http://www.python.org/ftp/python/2.5/Python-2.5.tar.bz2
tar jxvf Python-2.5.tar.bz2
cd Python-2.5
./configure --prefix=/tools/python
make
make test
make install


== Unpack and build Twisted ==
== Follow Linux install instructions ==
  mkdir -p /builds/buildbot
Once python 2.5 is installed, simply follow the [[ReferencePlatforms/BuildBot|Linux install instructions]].
  cd /builds/buildbot
Skip the user creation section and do the following instead:
  tar xjf ~/Desktop/Twisted-2.5.0.tar.bz2
  niutil -create / /users/buildbot
  cd Twisted-2.5.0
  niutil -createprop / /users/buildbot uid 503
  cd zope.interface-3.30
  niutil -createprop / /users/buildbot gid 503
sudo python setup.py install
  niutil -createprop / /users/buildbot realname "Buildbot"
cd ..
  niutil -createprop / /users/buildbot home "/Users/buildbot"
sudo python setup.py install
  niutil -createprop / /users/buildbot shell "/bin/bash"
 
  niutil -createprop / /users/buildbot passwd "*"
== Checkout BuildBot sources from Moz CVS ==
  niutil -create / /groups/buildbot
  mkdir -p /builds/buildbot
  niutil -createprop / /groups/buildbot gid 503
  cd /builds/buildbot
  passwd buildbot
  cvs -d :ext:cltbld@cvs.mozilla.org:/cvsroot co mozilla/tools/buildbot
 
== Build BuildBot ==
  cd /builds/buildbot/mozilla/tools/buildbot
  sudo python setup.py install
 
== Add buildbot to $PATH ==
Edit the $PATH in your .profile to include:
/System/Library/Frameworks/Python.framework/Versions/Current/bin


You should then be able to execute the following:
You should then be able to execute the following:
Line 34: Line 32:
  bm-xserve10:~ cltbld$ buildbot --version
  bm-xserve10:~ cltbld$ buildbot --version
  Buildbot version: 0.7.5
  Buildbot version: 0.7.5
  Twisted version: 2.5.0
  Twisted version: 2.4.0

Latest revision as of 21:38, 18 July 2007

Buildbot Reference Install Instructions - MacOSX

Starting point is the MacOSX Reference Platform.

Install Python 2.5

mkdir -p /tools/dist
cd /tools/dist
wget http://www.python.org/ftp/python/2.5/Python-2.5.tar.bz2
tar jxvf Python-2.5.tar.bz2
cd Python-2.5
./configure --prefix=/tools/python
make
make test
make install

Follow Linux install instructions

Once python 2.5 is installed, simply follow the Linux install instructions. Skip the user creation section and do the following instead:

niutil -create / /users/buildbot
niutil -createprop / /users/buildbot uid 503
niutil -createprop / /users/buildbot gid 503
niutil -createprop / /users/buildbot realname "Buildbot"
niutil -createprop / /users/buildbot home "/Users/buildbot"
niutil -createprop / /users/buildbot shell "/bin/bash"
niutil -createprop / /users/buildbot passwd "*"
niutil -create / /groups/buildbot
niutil -createprop / /groups/buildbot gid 503
passwd buildbot

You should then be able to execute the following:

bm-xserve10:~ cltbld$ buildbot --version
Buildbot version: 0.7.5
Twisted version: 2.4.0