TINy Continuous Integration script for use with GIT hooks
npm install tinci
|26||downloads in the last week|
|41||downloads in the last month|
|Version||0.8.0 last updated 24 days ago|
TINy Continuous Integration script for use with Git hooks
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
http://localhost:4567?invoke. More on WebHooks and integration with
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
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
Each hook script will be called with the following arguments:
- path to work directory
- current job's exit code
- last job's exit code
tinci hook 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.
These hooks are compatible with
post-receive, in other words each script will
be called with the same
stdin value as the
Here is a sample fail hook for sending
a hook which syncs files on
deploy branch to Amazon