gitlab ci #0

Supports: precise

Add to new model


Gitlab-CI integrates with your GitLab installation and runs tests for your projects.
Login with your GitLab account, add projects with one click, and enjoy running continuous integration.


A quick way to get started creating a juju charm using

Disclaimer: this template does not try to explain what's possible with
either ansible or juju - but if you know a bit about both, it will
show you how you can easily use them together.

Make sure you have both git and bzr installed and then:

$ mkdir -p charms/precise && cd charms/precise $ git clone mycharm $ cd mycharm $ make

That will pull in the required charm-helpers library and run the unit-tests.
Take a look around at the hooks/ or the playbooks/site.yaml,
or deploy it with:

$ juju deploy --repository=../.. local:charm-bootstrap-ansible

If you'd like to explore what's happening when the hooks run,
once juju status tells you that the services has 'started', you can
open another terminal up and run

$ juju debug-hooks charm-bootstrap-ansible/0

Back in your original terminal, let's change one of the config
options (defined in the config.yaml):

$ juju set charm-bootstrap-ansible string-option="Hi there"

Back in your debug-hooks terminal, you'll see the prompt
has changed to let you know it's ready to run the config-changed
hook. Run the hook to see what it does with:

$ hooks/config-changed

You'll see the output of ansible running all the tasks tagged with
'config-changed', including a debug message with the value of the config option that you changed. Just 'exit' to let juju know
the hook execution has finished.

Have fun exploring the possibilities of ansible and juju!

Note about Dependencies

The makefile to run tests requires the following dependencies

  • python-nose
  • python-mock
  • python-flake8

installable via:

$ sudo apt-get install python-nose python-mock python-flake8


(string) Administrative password
(boolean) Email CI project members on all broken builds
(string) Default email address to send mail from
(string) Space separated list of Gitlab hosts to integrate with
(string) Tag or SHA1 Hash to checkout from github
(string) FQDN of Gitlab-CI server