Semaphore has the following Ruby versions available via rbenv:
The Semaphore stack includes:
List of all packages and versions is available on the supported application stack page.
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.5.1
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.6.0-preview1 rbenv local 2.6.0-preview1 gem install bundler --no-ri --no-rdoc # followed by your build commands
Semaphore Docs are open source — Edit on GitHub