Add ability to suppress "Ruby 2.5 support is untested" message

This message can interfere with certain text editors/tools that
read the application output. This gives users the option of
setting an environment variable to hide that message.

Change-Id: I8033fd61c381c3628be0430f0d0b098a3bb42947
Reviewed-on: https://gerrit.instructure.com/137784
Reviewed-by: James Williams  <jamesw@instructure.com>
Tested-by: Jenkins
Product-Review: Dan Minkevitch <dan@instructure.com>
QA-Review: Dan Minkevitch <dan@instructure.com>
This commit is contained in:
Dan Minkevitch 2018-01-12 09:54:14 -08:00
parent 8dfd1f908d
commit 06d7a54bec
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ end
if RUBY_VERSION >= "2.4.0" && RUBY_VERSION < "2.5"
ruby RUBY_VERSION, :engine => 'ruby', :engine_version => RUBY_VERSION
elsif RUBY_VERSION >= "2.5.0" && RUBY_VERSION < "2.6"
puts "Ruby 2.5 support is untested"
puts "Ruby 2.5 support is untested" unless ENV['SUPPRESS_RUBY_WARNING']
ruby RUBY_VERSION, :engine => 'ruby', :engine_version => RUBY_VERSION
else
ruby '2.4.0', :engine => 'ruby', :engine_version => '2.4.0'