Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Latest commit

 

History

History
43 lines (34 loc) · 914 Bytes

File metadata and controls

43 lines (34 loc) · 914 Bytes

Simple Travis CI Trigger

A simple and tiny trigger page for Travis CI

only for "api.travis-ci.org"

Quick Start

  1. 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
    }
  }
}
  1. Install dependencies
$ npm i
  1. Start the service
$ npm run start
  1. Check localhost:{port} in browser screenshot