buildfarm f18741a: Enhance the buildbot web interface

URL: https://svn.lrde.epita.fr/svn/lrde-tools/trunk/buildbot Git branch: master (HEAD: 1532735) ChangeLog: 2007-11-09 The LRDE Buildbot <tsuna@lrde.epita.fr> Enhance the buildbot web interface. * masters/create_buildmaster.sh: Install the new files when creating a buildfarm. * masters/index.html: New. * masters/menu.html: New. --- masters/ChangeLog | 8 +++++++ masters/create_buildmaster.sh | 23 ++++++++++++++++--- masters/index.html | 19 ++++++++++++++++ masters/menu.html | 47 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+), 4 deletions(-) diff --git a/masters/ChangeLog b/masters/ChangeLog index b89c3e4..f9e834f 100644 --- a/masters/ChangeLog +++ b/masters/ChangeLog @@ -1,3 +1,11 @@ +2007-11-09 The LRDE Buildbot <tsuna@lrde.epita.fr> + + Enhance the buildbot web interface. + * masters/create_buildmaster.sh: Install the new files when creating + a buildfarm. + * masters/index.html: New. + * masters/menu.html: New. + 2007-11-08 Benoit Sigoure <tsuna@lrde.epita.fr> Add a buildfarm for Vaucanson. diff --git a/masters/create_buildmaster.sh b/masters/create_buildmaster.sh index e6284f7..4743644 100755 --- a/masters/create_buildmaster.sh +++ b/masters/create_buildmaster.sh @@ -46,12 +46,15 @@ for file in "r:$BUILDFARM_WC/masters/template_gnu_master.cfg" \ "r:$BUILDFARM_WC/masters/template_qt_master.cfg" \ "r:$BUILDFARM_WC/masters/buildfactory.py" \ "r:$BUILDFARM_WC/masters/apache_bf.conf" \ + "r:$BUILDFARM_WC/masters/buildbot.css" \ + "r:$BUILDFARM_WC/masters/index.html" \ + "r:$BUILDFARM_WC/masters/menu.html" \ "w:$BUILDFARM_WC/masters/www/index.php" \ do perm=`echo "$file" | sed 's/:.*//'` file=`echo "$file" | sed 's/.*://'` - case "$perm" in + case $perm in *r*) if [ ! -r $file ]; then echo "Cannot read the file $file" >&2 @@ -216,10 +219,22 @@ WARNING: The default configuration assumes that $project_name uses $build_system and a 'standard' build process. If it's not the case, you *MUST* patch $my_cfg accordingly." -cd "$bb_dir_name" +run cd "$bb_dir_name" run ln -s -f $my_cfg master.cfg -run ln -s -f $BUILDFARM_WC/masters/buildfactory.py . -cd "$here" +run ln -s -f "$BUILDFARM_WC/masters/buildfactory.py" +if test -d public_html; then + run cd public_html + for i in "$BUILDFARM_WC/masters/buildbot.css" \ + "$BUILDFARM_WC/masters/index.html" \ + "$BUILDFARM_WC/masters/menu.html" + do + rm -f `basename "$i"` + run ln -s -f "$i" + done + echo 'creating title.js' + echo "document.title = '$project_name ' + document.title;" >title.js +fi +run cd "$here" # Generate a patch for the Apache configuration grep "$my_waterfall_port" $BUILDFARM_WC/masters/apache_bf.conf >/dev/null || { diff --git a/masters/index.html b/masters/index.html new file mode 100644 index 0000000..54c922a --- /dev/null +++ b/masters/index.html @@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"> +<title>buildbot</title> +<script language="javascript" src="title.js"> +</script> +</head> +<frameset rows="24,*"> + <frame src="menu.html" name="nav" longdesc="navigation menu" + marginheight="3" marginwidth="2" /> + <frame src="one_box_per_builder" name="content" /> + <noframes> + <p>This is a framed page, please go to + <a href="menu.html">the menu</a> for more links.</p> + </noframes> +</frameset> +</html> diff --git a/masters/menu.html b/masters/menu.html new file mode 100644 index 0000000..b7ed1c8 --- /dev/null +++ b/masters/menu.html @@ -0,0 +1,47 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" +"http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"> +<title>Buildbot navigation page</title> +<style type="text/css"> +body { + font-family: Verdana, Courier, sans-sarif; + font-size: 75%; +} + +#nav ul +{ + margin: 0; + padding: 0; + list-style-type: none; +} + +#nav ul li { display: inline; } +#nav ul li a +{ + text-decoration: none; + padding: .2em 1em; + color: #fff; + background-color: #036; +} + +#nav ul li a:hover +{ + color: #fff; + background-color: #369; +} +</style> +</head> +<body> +<div id="nav"> +<ul> + <li><a href="waterfall" target="content">Waterfall</a></li> + <li><a href="one_box_per_builder" target="content">Latest Build</a></li> + <li><a href="one_line_per_build" target="content">Recent Builds</a></li> + <li><a href="buildslaves" target="content">Buildslave information</a></li> + <li><a href="changes" target="content">ChangeSource information</a></li> + <li><a href="about" target="content">About this Buildbot</a></li> +</ul> +</div> +</body></html> -- SIGOURE Benoit aka Tsuna (SUSv3 compliant) _____ "I think Git is definitely in the running /EPITA\ Promo 2008.CSI/ACU/YAKA to be the dominate version control system." -- Bob Proulx
participants (1)
-
The LRDE Buildbot