Installing Builbot on Ubuntu

24 October, 2014

NOTE: Video only in Spanish, sorry.

I’d like to introduce you to Buildbot, the continuous integration Python framework. Very easy to install and soon to setup as I will continue explaining with a  series of videos in my Youtube Channel.

As described in their website, Buildbot is:

  • Open-source framework for automating software build, test, and release processes.
  • Can automate all aspects of the software development cycle.
  • As a framework you implement a system that matches your workflow and grows with your organization.

It is widely used in various important software as you can see here.

Here the video I made, enjoy!


# Instructions (.md format)

## buildbot-master installation (terminal 1)

* ~$ sudo apt-get -y install python-pip python-dev build-essential python-virtualenv sqlite3
* ~$ mkdir buildbot
* ~$ cd buildbot
* ~/buildbot$ virtualenv --no-site-packages sandbox
* ~/buildbot$ source sandbox/bin/activate
* (sandbox)~/buildbot$ pip install sqlalchemy==0.7.10
* (sandbox)~/buildbot$ pip install buildbot
* (sandbox)~/buildbot$ buildbot create-master -r master
* (sandbox)~/buildbot$ cp master/master.cfg.sample master/master.cfg
* (sandbox)~/buildbot$ vim master/master.cfg
* (sandbox)~/buildbot$ buildbot start master
* (sandbox)~/buildbot$ tail -f master/twistd.log

## buildbot-slave installation (terminal 2)

* ~$ cd buildbot
* ~/buildbot$ source sandbox/bin/activate
* ~/buildbot$ pip install buildbot-slave
* (sandbox)~/buildbot$ buildslave create-slave -r slave localhost:9989 example-slave pass
* (sandbox)~/buildbot$ buildslave start slave
* (sandbox)~/buildbot$ tail -f slave/twistd.log

## View web status: http://localhost:8010

## Template folders
* Original: ~/buildbot/sandbox/lib/python2.7/site-packages/buildbot-0.8.9-py2.7.egg/buildbot/status/web/templates
* Replicas: ~/buildbot/master/templates
* Static pages: ~/buildbot/master/public_html

## Locale problem (environment variable)
### View missing

~ $ env | grep LC_
### Solution

~ $ export LC_ALL=en_GB.UTF-8
~ $ sudo vim /etc/default/locale
(and add...)

## Official documentation

    Tags: , , ,

    Leave a Comment