A simple and tiny trigger page for Travis CI
only for "api.travis-ci.org"
- Configure your
config.json
. (ref:config.example.json
)
{
"port": 5000, // the port that service would be hosted
"sessionKeys": ["keys", "keyskeys"], // keys for csrf
"travis": {
"token": "your travis token", // as the value :)
"repository": { // one of id or slug is needed
"id": "", // 1st priority
"slug": "COSCUP/2020", // 2nd priority
"branch": "master" // the branch to trigger
}
}
}
- Install dependencies
$ npm i
- Start the service
$ npm run start