0.0
No commit activity in last 3 years
No release in over 3 years
Snap-ci integration with lita
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 4.7
 Project Readme

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.