cainus / continuity

get environment variables from multiple popular CI servers/services in a uniform form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#continuity

This is a work in progress!

###Get environment variables from multiple popular CI servers/services in a uniform form.

Supported services:

  • circle-ci
  • codeship
  • drone
  • jenkins
  • semaphore
  • travis
  • wercker

Running locally with git outside of these environments is also supported.

###Usage:

var getConfig = require('continuity');
getConfig(function(err, config){
  // the environment configuration will be set here
};

The configuration object will look like this:

{
  "service" : 'travis',
  "build"   : '12341234',
  'branch'  : 'master',
  'commitId' : 'c95d4e0d56b14bbb2eb0097f752291b472dd98c9'
}

There may be an additional pullRequest property if the environment supports this property, and the commit is a pull-request.

About

get environment variables from multiple popular CI servers/services in a uniform form

License:MIT License


Languages

Language:JavaScript 96.4%Language:Makefile 3.6%