Lawsun d230cfbce0 first commit 1 anno fa
..
templates d230cfbce0 first commit 1 anno fa
History.md d230cfbce0 first commit 1 anno fa
LICENSE d230cfbce0 first commit 1 anno fa
README.md d230cfbce0 first commit 1 anno fa
README.zh-CN.md d230cfbce0 first commit 1 anno fa
install.js d230cfbce0 first commit 1 anno fa
package.json d230cfbce0 first commit 1 anno fa

README.md

egg-ci

NPM version build status Build Status Test coverage David deps npm download

Auto gen ci config file.

Installation

$ npm i egg-ci --save-dev

Usage

Add ci property to your package.json:

"ci": {
  "type": "github", // default ci env type is 'travis, appveyor', also support 'github, azure-pipelines'
  "os": {
    "travis": "linux", // travis support 'linux', 'osx' and 'windows' operation system, default is 'linux'
    "azure-pipelines": "linux, windows, macos", // azure-pipelines support 'linux, windows, macos', default is 'linux, windows, macos'
    "github": "linux, windows, macos"
  },
  "npminstall": true, // use `npminstall` or `npm install`, default is true
  "version": "12, 14, 16", // test LTS node version by default
  // npm ci command
  "command": {
    "travis": "ci",
    "appveyor": "test",
    "azure-pipelines": "ci",
    "github": "ci"
  },
  "services": "redis-server, mysql", // custom service
  "license": false // generate license
}

How

Use npm postinstall hook to create the *.yml after each npm install run.

License

MIT