Simple app for automatization of everything
Project description
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 http://sloth-ci.cloudapp.net/ (yes, they are built with Sloth CI).
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: 0.0.0.0
port: 8080
daemon: true
log_dir: /var/log/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: docs
work_dir: ~/projects
provider:
bitbucket:
repo: username/repository
extensions:
logs:
module: logs
path: /var/log/sloth-ci
filename: docs_errors.log
level: ERROR
actions:
- rm -rf repository
- hg clone https://bitbucket.org/username/repository
- pip3 install -U sphinx
- pip3 install -r repository/docs/requirements.txt
- sphinx-build -aE repository/docs/ {output}
params:
output: /var/www/html/
Create the app from the config:
$ sloth-ci create /path/to/myapp.yml
App created, listening on docs
That’s it! Your app now listens for payload from Bitbucket at http://0.0.0.0:8080/docs.
Create a hook on Bitbucket, and you docs will be automatically built on every push to the repo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.