Skip to content

seekingalpha/ship_it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShipIt

ship-it utils to deploy using CI

Installation

  1. Add ship-it to your Gemfile and bundle install:

    gem 'ship_it', git: 'https://github.com/seekingalpha/ship_it.git'
  2. Add the needed binstubs:

    bundle binstubs ship-it unship-it
  3. Require ship_it/tasks in your Rakefile

  4. Implement bin/test-ci-online and bin/queue-ship-it. This two have to exist and be executable. bin/test-ci-online should succeed in case the connection to your CI server is working. bin/queue-ship-it is the script that will send the two files created by ship-it to the CI server. Complete examples based on Jenkins are located under the examples directory.

  5. Create a staging_history branch. This is the branch ship-it will be using to record the staging branch list history.

    rake shipit:history_branch

    Pass [branch_name] if you want to use a different branch as the target for ship-it.

Usage

bin/ship-it will

To "ship" other branches, run ship-it branch_name.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb and push a tag of the version.