NullVoxPopuli NullVoxPopuli - 1 year ago 88
Ruby Question

Is there a travis ci environment variable to get the current ruby version to be used for the test?

in my gemfile, I have:

ruby ENV['RUBY_VERSION'] || '2.2.0'

RUBY_VERSION is doesn't exist in travis, as I get an error when travis runs saying that it can't run because the environment is set up with one version of ruby, and the gemfile specifies another.

the error:

Your Ruby version is 2.2.0, but your Gemfile specified ruby-2.2.0

Answer Source
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download