Docs Navigation

Ruby support on Semaphore

Semaphore has the following Ruby versions available via rbenv:

  • 2.4.1
  • 2.4.0
  • 2.3.4
  • 2.3.3
  • 2.3.1
  • 2.3.0
  • 2.2.7
  • 2.2.6
  • 2.2.5
  • 2.2.4
  • 2.2.3
  • 2.2.2
  • 2.2.1
  • 2.2.0
  • 2.1.9
  • 2.1.8
  • 2.1.7
  • 2.1.6
  • 2.1.5
  • 2.1.4
  • 2.1.3
  • 2.1.2
  • 2.1.1
  • 2.1.0
  • 2.0.0-p598
  • 1.9.3-p551
  • 1.9.2-p330
  • ree-1.8.7-2012.02
  • JRuby 1.7.27
  • JRuby 9.1.12.0

The Semaphore stack includes:

List of all packages and versions is available on the supported application stack page.

Ruby version

The version specified in project settings will be set as global before your build commands run. Semaphore uses rbenv for managing Ruby versions.

Setting Ruby version is performed by the equivalent of the following commands:

rm -f .rbenv-version .ruby-version
rbenv global 2.4.1

Installing additional version of Ruby

In case your application requires specific Ruby version which is not available by default in Semaphore VM you can install it via rbenv. It's simple. You would only need to add few lines to your build commands like in example below:

cd ~/.rbenv/plugins/ruby-build && git pull && cd $SEMAPHORE_PROJECT_DIR
rbenv install 2.1.0-preview1
rbenv local 2.1.0-preview1
gem install bundler --no-ri --no-rdoc
# followed by your build commands

Semaphore Docs are open source — Edit on GitHub

Newsletter

Occasional lightweight product and blog updates. Unsubscribe at any time.

2009-2017 © Rendered Text. All rights reserved. Terms of Service, Privacy policy, Security.