GithubHelp home page GithubHelp logo

nvdnkpr / tinci Goto Github PK

View Code? Open in Web Editor NEW

This project forked from icetan/tinci

0.0 2.0 0.0 484 KB

TINy Continuous Integration script for use with GIT hooks

Home Page: http://icetan.github.com/tinci

License: MIT License

tinci's Introduction

tinci

TINy Continuous Integration script for use with Git hooks

Screenshot of tinci GUI

For the looks

You can setup tinci for a bare Git repo and view the build logs over HTTP.

$ npm install -g tinci
$ tinci my/project.git/
$ open http://localhost:4567

Invoke a fetch and build with WebHooks by doing a HTTP POST to http://localhost:4567?invoke. More on WebHooks and integration with GitHub.

Just the hooks

If you don't want the GUI then you can just copy the hook script to your Git repo manualy.

$ cp tinci/hooks/post-receive project.git/hooks/
$ git config -f project.git/config --add tinci.runner "make test"

tinci will now run the shell command 'make test' each time someone pushes to your repos master branch.

To run tinci on another branch or tag.

$ git config -f project.git/config --add tinci.match my-feature

The tinci.match setting uses regexp so you can specify tinci to run on all pushes by giving the value .*.

tinci will execute its own hooks on completion of a job. Place executable files in your repos hooks directory with the name tinci, tinci-<branch>, tinci-success or tinci-fail.

Each hook script will be called with the following arguments:

  1. path to work directory
  2. current job's exit code
  3. last job's exit code

The tinci and tinci-<branch> hooks will be called on all completed jobs. tinci-success is only called on a job that exits with a zero and tinci-fail will only be called when a job exits with non-zero.

<branch> in tinci-<branch> will be replaced with the current short ref name of the current job.

Example: git push origin master:deploy till trigger a tinci job on the deploy branch on origin and will look for and execute a hook script with the name tinci-deploy.

These hooks are compatible with post-receive, in other words each script will be called with the same stdin value as the post-receive was.

Here is a sample fail hook for sending e-mail and a hook which syncs files on deploy branch to Amazon S3.

tinci's People

Contributors

icetan avatar

Watchers

 avatar  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.