lita snap ci integration
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib Release 1.1.0 (#1) Jun 23, 2016
locales Release 1.1.0 (#1) Jun 23, 2016
spec * Configure test coverage reporter Jun 23, 2016
templates Bootstrap the gem May 18, 2016
.codeclimate.yml Release 1.1.0 (#1) Jun 23, 2016
.gitignore Add custom snap ci http connector May 30, 2016
.rubocop.yml Release 1.1.0 (#1) Jun 23, 2016
Gemfile Bootstrap the gem May 18, 2016
README.md
Rakefile Bootstrap the gem May 18, 2016
lita-snap-ci.gemspec Release 1.1.0 (#1) Jun 23, 2016

README.md

lita-snap-ci

Lita handler, to display the snap-ci pipelines of a project.

Service Status
Snap-ci Build Status
CodeClimate Code Climate
Test Coverage Test Coverage

Installation

Add lita-snap-ci to your Lita instance's Gemfile:

gem "lita-snap-ci"

Configuration

Information that you need:

Configure your lita-config.rb.

Example:

  config.handlers.snap_ci.user = "snapUser"
  config.handlers.snap_ci.token = "Snap-ci-api-key"
  config.handlers.snap_ci.projects = [
    {
      owner: 'oneorg',
      repository: 'api',
      branches: ['development', 'staging', 'master']
    },{
      owner: 'oneorg',
      repository: 'front',
      branches: ['staging', 'master']
    },{
      owner: 'otherorg',
      repository: 'websites',
      branches: ['develop' , 'master']
    }
  ]

Usage

Display the status of your repositories.

Chat input:

snap-ci report

Chat output:

Project: otherorg/websites:
  develop: failed (Test: failed)
  master: failed (Test: failed)

Project: oneorg/front:
  staging: passed (TEST: passed, deploy_staging: passed)
  master: passed (TEST: passed, deploy_prod: passed)

Project: oneorg/api:
  development: passed (Integration: passed, Brakeman: passed)
  staging: passed (Integration: passed, deploy_staging: passed)
  master: passed (FastFeedback: passed, Integration: passed, deploy_prod: unknown)

Display the status of one repository.

Chat input:

snap-ci project api or snap-ci project oneorg/api

Chat output:

Project: oneorg/api:
  development: passed (Integration: passed, Brakeman: passed)
  staging: passed (Integration: passed, deploy_staging: passed)
  master: passed (FastFeedback: passed, Integration: passed, deploy_prod: unknown)

License

lita-snap-ci is released under the MIT License.