continuum is a minimalist continuous integration tool
Continuum is a lightweight continuous integration tool: no web interface, no scheduler. It runs on command line and is triggered by cron.
You can install it using PIP, typing pip install continuum. This will install the continuum script in you PATH. You may also download the archive, expand it and type in the created directory sudo python setup.py install.
While calling continuum, you must pass the configuration file name on the command line:
Configuration is in YAML format:
directory: /tmp email: smtp_host: smtp.foo.com recipient: email@example.com sender: firstname.lastname@example.org success: false modules: continuum: url: https://github.com/c4s4/continuum.git command: | set -e virtualenv env --no-site-packages . env/bin/activate pip install -r etc/requirements.txt bee test module2: url: https://github.com/foo/bar.git command: | set -e commands to run the test
The first part indicates:
If you wait to receive email reports, provide following fields:
The second one is the list of modules, with, for each module:
The most important thing to remember about editting YAML is that Tab characters are forbidden (and should be replaced with spaces to properly indent). Please see YAML specification (at http://www.yaml.org/spec/1.2/spec.html) for more details.
This script is triggered using cron, with as configuration as follows (in file /etc/crontab):
# run continuum at 4 every night 0 4 * * * me continuum /home/me/etc/continuum.yml
Please make sure that the PATH to continuum is defined in your cron configuration. You may add the right PATH at the beginning of your crontab file as following:
PATH=/path/to/continuum:/rest/of/my/path # run continuum at 4 every night 0 4 * * * me continuum /home/me/etc/continuum.yml