Coder Social home page Coder Social logo

capistrano-ci's Introduction

Capistrano::Ci

Build Status

Introduction

capistrano-ci is extension for capistrano that allows you to check status of your repository before deployment. Currently it supports:

Installation

Add this line to your application's Gemfile:

gem 'capistrano-ci'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-ci

Add to your Capfile:

require 'capistrano/ci/recipies'

Configuration

Variables list:

  • :ci_client (required) - supports travis, travis_pro, circle, or semaphore
  • :ci_repository (required) - organization or user name and repository name on github
  • :ci_access_token(required for travis_pro, circle, or semaphore) - access token specific to the service

Open Source Projects

Setup ci_client and ci_repository variables in your deployment script:

 set(:ci_client){ "travis" }
 set(:ci_repository){ "organisation-or-user/repository-name" }

Pro Account of Travis-CI:

Additional to ci_client and ci_repository setup ci_access_token:

 set(:ci_client){ "travis_pro" }
 set(:ci_repository){ "organisation-or-user/repository-name" }
 set(:ci_access_token){ "your-pro-access-token" }

Read explaination how to obtain Travis-CI access token. To have more information about Travis-CI access token follow this blog post.

CircleCi:

Setup ci_client, ci_repository and ci_access_token in your deployment script:

 set(:ci_client){ "circle" }
 set(:ci_repository){ "organisation-or-user/repository-name" }
 set(:ci_access_token){ "your-circle-access-token" }

Semaphore:

Setup ci_client, ci_repository and ci_access_token in your deployment script:

set(:ci_client){ "semaphore" }
set(:ci_repository){ "organisation-or-user/repository-name" }
set(:ci_access_token){ "your-semaphore-access-token" }

Enable ci:verify task:

 before 'deploy' do
   ci.verify
 end

 # or in case of using capistrano-patch:
 before 'patch:create' do
   ci.verify
 end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright

Copyright (c) 2013 Railsware LLC. See LICENSE.txt for further details.

capistrano-ci's People

Contributors

anolson avatar paladiy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.