tremble
Tremble is a very simple CI tool in Javascript. It provides a simple server supporting GitLab merge requests and push events.
Table of Contents
Server
Tremble provides a CI server ready to run (preferably in Docker), that you can build in 3 steps.
- Create a new node project with
npm init
and install Tremble withnpm install tremble-ci --save
- Create an
index.js
file configuring and launching the server. - Create a
Dockerfile
and rundocker
.
index.js
'use strict'; const server = ;const path = ; ;
Dockerfile
FROM node:4-onbuild
VOLUME ["/data"]
EXPOSE 3000
Supported services
Only GitLab merge requests and push events are supported at the moment.
GitLab
/trigger/gitlab
accepts GitLab merge request and push hooks. One you have installed a Tremble server, you can just register {your host}/trigger/gitlab
as the hook for merge requests and push.
Use only the library
You can use just the test runner without using the server. Tremble provides both promise and callback interface.
tremble()
will return a promise if you do not provide a callback.
const tremble = ; ;