Skip to content

guileen/node-cci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CCI

A very simple CI server

Feature

  • configure with js
  • output CI results into static json
  • no database required
  • gitlab webhook
  • daily build

Install

npm install -g cci

Usage

Start server

cci --port 1234 --output data /path/to/config.js

Open http://host:1234

Run a task once

cci <config.js> --project name

gitlab webhook

http://host:1234/gitlab/hook/{project}

The project is the project name in your config file, NOT gitlab project name.

Configure

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

/output
 |- index.json
 |- <project ... >
 `- <project>
     |- versions.json
     `- <version>
         |- results.json
         `- dists
             |- file1.jar
             `- xxx.apk

About

A very simple CI server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages