Skip to main content

Enhances a BuildBot installation to nicely integrate with GitLab

Project description

The Buildbot GitLab plugin provides an easy to install and configure enhancement for Buildbot.

Installation

You can download and install the latest version of this software from the Python package index (PyPI) as follows:

pip install --upgrade buildbot-gitlab

Usage

Buildbot Gitlab uses a RESTful API to manage multiple projects. The project name and containing folder used in Gitlab is stored within a .json file, which is then parsed during the BuildMaster startup in order to generate builders for each project.

TO DO: More info to follow…

Tests

Included with the API are unit tests which can be run as part of the Buildbot test procedure. The tests can be run via the following command:

PYTHONPATH=. trial buildbot.test

Which should be executed from within the buildbot directory.

Additionally rather than running the entire Buildbot test suite, the tests specific to Buildbot Gitlab can be run with the following commands

PYTHONPATH=. trial buildbot.test.unit.test_gitlab_api

PYTHONPATH=. trial buildbot.test.unit.test_gitlab_resources

The tests can also be run using Pythons Unit testing framework (PyUnit) instead of twisted trial with the following command:

PYTHONPATH=. python -m unittest -v buildbot.test.unit.test_gitlab_api

PYTHONPATH=. python -m unittest -v buildbot.test.unit.test_gitlab_resources

Note that the gitlab_resources tests requires buildbot & twisted packages to be present, as these provide the functionality for fake web requests used by the resource tests. The API tests function independently of other packages.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

buildbot-gitlab-0.1.2.tar.gz (11.8 kB view details)

Uploaded Source

File details

Details for the file buildbot-gitlab-0.1.2.tar.gz.

File metadata

File hashes

Hashes for buildbot-gitlab-0.1.2.tar.gz
Algorithm Hash digest
SHA256 37c836d19f04b79f2db3f9b872f1d3daa0740db381935c6f6850efd7655fdf1a
MD5 21d39a8a23ff28693c2cb25e32a6f8c6
BLAKE2b-256 3805ebbdbac7a2f78f89f135e55171381ad20247fa2c846213b946e35655174b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page