ReferencePlatforms/UnitTestOnly/10.5: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 53: Line 53:
  python setup.py build
  python setup.py build
  sudo python setup.py install
  sudo python setup.py install
== Setup buildbot start on boot ==
cd /Library/LaunchAgents
sudo wget --no-check-certificate -Obuildbot.start.slave.plist https://bug428124.bugzilla.mozilla.org/attachment.cgi?id=371801
sudo chown root:wheel buildbot.start.slave.plist
* Ensure the the correct user and slave directory are set in the script (cltbld and /builds/slave by default)
From VNC:
* Make sure the resolution is set to 1280x1024. (''this is not in the xserve ref image'')
* System Prefs -> Accounts -> Login Options
** Set 'Automatic Login' to 'cltbld', enter the password when prompted.

Revision as of 19:56, 17 November 2009

Version 1

Install OS

Use a retail Leopard OS disc then install the following updates:

*"AirPort Utility Software Update 2009-002" (5.4.2)
*"AirPort Utility" (5.3.2)
*"QuickTime" (7.6.4)
*"iTunes" (9.0.1) 
*"Mac OS X Update Combined" (10.5.8)
*"Java for Mac OS X 10.5 Update 5" (1.0)
*"Safari" (4.0.3) 
*"Security Update 2009-005" (1.0)
*"Front Row Update" (2.1.7)
*"Remote Desktop Client Update" (3.3.1)

System Preferences

Open System Preferences and in:

  • Energy Saver set both times to 'never'
  • Spotlight set the main hard drive as a private location to stop spotlight from indexing it
  • Desktop and Screensaver set the screensaver time to 'never'
  • Dock and set the dock to automatically hide
  • Displays and set resolution to 1280x1024@60hz
  • Sharing and enable screen sharing and remote login

Runtime requirements

You need to install mercurial, wget and buildbot. Instead of installing macports and xcode tools we are going to use the built in version of Twisted 2.5.0:

hg clone http://hg.mozilla.org/build/buildbot buildbot
cd buildbot
python setup.py build
sudo python setup.py install

For WGet, you will need to compile on another mac:

curl -O http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
tar zxf wget-latest.tar.gz
cd wget-latest
export CFLAGS='-arch ppc'
export CXXFLAGS='-arch ppc'
./configure --enable-static --disable-shared
make
scp src/wget cltbld@remote-machine.domain:

And install it on your remote machine:

sudo cp ~/wget /usr/bin

Buildbot Slave

Finally, set up your buildbot slave

mkdir -p /builds/slave
cd /builds/slave
buildbot create-slave . master:port username password

Install XCode

We need Mercurial for the tools repository checkout. To build this we need to have XCode installed on the machine. Grab xcode and install it. Once installed, build mercurial

wget http://mercurial.selenic.com/release/mercurial-1.3.1.tar.gz
tar zxf mercurial-1.3.1.tar.gz
cd mercurial-1.3.1
python setup.py build
sudo python setup.py install

Setup buildbot start on boot

cd /Library/LaunchAgents
sudo wget --no-check-certificate -Obuildbot.start.slave.plist https://bug428124.bugzilla.mozilla.org/attachment.cgi?id=371801
sudo chown root:wheel buildbot.start.slave.plist 
  • Ensure the the correct user and slave directory are set in the script (cltbld and /builds/slave by default)

From VNC:

  • Make sure the resolution is set to 1280x1024. (this is not in the xserve ref image)
  • System Prefs -> Accounts -> Login Options
    • Set 'Automatic Login' to 'cltbld', enter the password when prompted.