Setting up a Nightly Build
Setting up a Nightly Build
It is possible to setup a nightly build in your server shell account. To do this you should create a script that checks out your source code (remember that on the server you can simply use cvs -d /cvs/able rather than pserver) and builds and tests it in a sandbox. The script for the fluid project is located in /home/fluid/fluidnightlybuild.py. It is in Python and may be copied for your use.
Once you have an automated build script you need to tell the server it needs to be run. You do this with the crontab command. Use crontab -e to edit your account's jobs. and crontab -l to list your current jobs'. For the Fluid project nightly build our file looks like:
{fluid.cs.cmu.edu:~} crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.27992 installed on Fri Mar 14 22:45:19 2003)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
# At 5 min after midnight do the Fluid Nightly Build
5 0 * * * /bin/tcsh -c $HOME/fluidnightlybuild.py
{fluid.cs.cmu.edu:~}
Read the crontab documentation using man crontab at the shell prompt.