Giter VIP home page Giter VIP logo

watson-ci's Introduction

Watson CI

Build Status

watson is a simple continuous integration server that helps you build your projects constantly while you edit the files.

dr Watson

(The image above is available on www.evilspacerobot.com)

Philosophy

In its concept watson watches for changes made in the filesystem of your project, and on this basis, runs configured test (or build) commands to check if everything is still fine and all your test pass.

In its usage design it is similar to Travis CI server.

Configuration

Each project should provide a file named .watson.yaml (note the dot) with its configuration, for example:

script:
    - nosetests
    - pep8
ignore:
    - .*.pyc

The only requirement is that the script should use an exit code 0 on success and anything else will be considered as failure.

Commands will be executed with relative to the directory where filesystem recently changed.

Example configuration (used by watson project itself) can be found here.

Usage

To add your project to watson use:

watson watch

in any directory of your project. .watson.yaml fill be searched up the root directory and your project configuration will be updated in the server.

Config changes are detected and picked up automatically.

As soon as your project is built, server will show a notification about its status. It uses pynotify library to handle it so they look as follows:


Portability

For now watson was tested only under Ubuntu, and does not have any kind of abstraction for notification support. Feel free to contribute if you are insterested in other notification systems.

Server management

Also server will be started if needed using configuration in ~/.watson/config.yaml.

You can manage state of the server as well:

watson start|stop|restart

By default watson listens on port 0x221B (8731), and exposes a simple XMLRPC API.

Installation

Simply type the following command into terminal to install the latest released version:

pip install watson-ci [--upgrade]

Contribution

Improvement ideas are welcome.

Feel free to file a bug report, or send a pull request. I will try my best to look into it and merge your changes, or I'll give you commit rights if you will.

watson-ci's People

Contributors

dejw avatar

Watchers

James Cloos avatar B'Random Cliphord EiQ avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.