Skip to main content

Simple app for automatization of everything

Project description

Latest Version Downloads Wheel Status Development Status

Sloth CI is an easy-to-use, lightweight, extendable tool that executes actions you need when certain events happen.

Sloth CI was created because Jenkins is too heavy and Buildbot was too hard to learn.

Read the docs at sloth-ci.rtfd.org.

Requirements

Sloth CI runs with Python 3 on Windows, Linux, and Mac.

Install

Install Sloth CI with pip:

$ pip install sloth-ci

Configure

Create a file named sloth.yml in any directory and cd to that directory.

Here’s how your sloth.yml can look like:

host: localhost

port: 8080

daemon: true

log_dir: /var/logs/sloth-ci

api_auth:
    login: admin
    password: supersecret

Start

Start the Sloth CI server with:

$ sloth-ci start

Create App

Create a file called like myapp.yml:

listen_point: myapp/incoming

work_dir: ~/projects

provider:
    bitbucket:
        repo: username/repository

extensions:
    error_logs:
        module: logs
        path: /var/logs/sloth-ci/myapp
        filename: myapp_errors.log
        level: ERROR

actions:
    hg pull {branch} -u {repo_dir}
    sphinx-build -aE {repo_dir} {output_dir}

params:
    repo_dir: repository
    output_dir: /var/www/myapp_docs

Create the app from the config:

$ sloth-ci create-app myapp.yml
App created, listening on myapp/incoming

Note

Run sloth-ci create from the directory with the sloth.yml file.

That’s it! Your app now listens for payload from Bitbucket at http://localhost:8080/myapp/incoming.

Create a hook on Bitbucket, and you docs will be automatically built on every push to the repo.

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
sloth_ci-1.0.0-py3-none-any.whl (10.9 kB) Copy SHA256 hash SHA256 Wheel 3.4 Nov 17, 2014
sloth-ci-1.0.0.win-amd64.exe (273.9 kB) Copy SHA256 hash SHA256 Windows Installer any Nov 17, 2014
sloth-ci-1.0.0.zip (12.3 kB) Copy SHA256 hash SHA256 Source None Nov 17, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page