Automation of building binary rubies for RVM.
Shell Ruby
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.
.gitignore
.ruby-version
.travis.yml
README.md
Vagrantfile
cleanup-rubies.sh
config.yml
install-ruby.sh
install-rvm.sh
run
setup-vm.sh

README.md

RVM Binary

Automation of building binary rubies for RVM.

Included virtual machines are also helpful in manually testing and debugging RVM behaviour on different environments.

Installation

Requirements

This setup can run on any version of Linux, macOS or Windows supported by the tools listed below:

If you don't have above tools already installed you should start from installing them manually or follow step by step instruction below.

macOS with Homebrew

brew cask install virtualbox
brew cask install vagrant

Additionally you might want to install Vagrant Manager, which helps you manage all your virtual machines in one place directly from the menubar.

brew cask install vagrant-manager

Invocation

  • ./run list - List available images
  • ./run <image> - Run single image build
  • ./run [all] - Run build on all images, one by one
  • ./run binaries - List all build rubies

It is possible to define which ruby should be build:

RUBY_VERSIONS="ruby-1.9.3-p327" vagrant up arch_20120702_64bit

Output

Output of the build will be available in binaries/ folder.

Ruby versions

Only MRI 1.9.3-p125+ is supported:

That said - feel free to build any binary ruby for yourself, just be careful publishing it, make sure to include information in what path it should be installed (relevant for MRI 1.8.7 / REE).

Optimization

RVM installation

To speed up rvm installation for every machine do a local checkout of rvm source:

git clone --depth 0 https://github.com/wayneeseguin/rvm.git rvm-src

Or from local project:

git clone ~/projects/rvm/rvm rvm-src

Make sure to update it before running builds.