Automated Builds

From Freehackers
Jump to: navigation, search

Freehackers.og uses buildbot to handle automatic testing. See this article to learn more about this decision.

Buildbot can be used to trigger a build test for every commit, but we dont use this at freehackers. The current only way to trigger a build is by actually asking buildbot to do it. This can be done through the webpage, or by chatting with the irc bot.

Contents

Current Projects

Freehackers related software :

Howto : Provide a slave

Here I describe how you can provide a slave to be added to freehackers 'compile farm'. First, you need to ask for a username and a password. You can ask on irc://irc.freenode.org/freehackers.

Basically, you need to create a new user (to prevent problems with your own account) and issue something like this in its home :

 buildbot  create-slave freehackers freehackers.org:9980 <username> < password>

One user can have several slaves (one dir = one slave = one project). Of course you need to change the project name (here :freehackers) and the port number (see at the top of the page).

Then, start it to check everything is ok :

 cd freehackers
 buildroot start .
 # check it's ok on the server buildbot page
 buildroot stop . 


When everything is fine you need to be sure the slave is started on each startup.

Gentoo Specific notes

To have the slave start on each reboot, you need to configure /etc/conf.d/buildslave and to issue (as root)

 rc-update add buildslave default
 /etc/init.d/buildslave start #check it starts well

Debian Specific notes

To have the slave start on each reboot, you need to configure /etc/default/buildbot and to issue (as root)

   /etc/init.d/buildbot start #check it starts well

Howto : IRC

You can talk with the irc bot on irc. Here is an example :

 <orzel> fh-buildbot: force build yzis-full because
 <fh-buildbot> build forced [ETA 2m09s]
 <fh-buildbot> I'll give a shout when the build finishes
 <fh-buildbot> Hey! build yzis-full #8 is complete: Success [build successful]
 <fh-buildbot> Build details are at http://freehackers.org:8010yzis-full/builds/8

You can also query him and ask for help.

Personal tools
Namespaces
Variants
Actions
fh network
Freehackers
Navigation
Toolbox