A very simple CI server
- configure with js
- output CI results into static json
- no database required
- gitlab webhook
- daily build
npm install -g cci
cci --port 1234 --output data /path/to/config.js
Open http://host:1234
cci <config.js> --project name
http://host:1234/gitlab/hook/{project}
The project is the project name in your config file, NOT gitlab project name.
module.exports = {
projects : {
"{projectName}": {
repo: '{gitRepoUrl}',
path: '{clone to path}', // default /tmp/tinyci/{projectname}
tasks: [
'<cmd>',
'<cmd>',
...
]
}
...
}
}
use {{dist}}
in <cmd>
to copy dist files into that folder
/output
|- index.json
|- <project ... >
`- <project>
|- versions.json
`- <version>
|- results.json
`- dists
|- file1.jar
`- xxx.apk