diff --git a/.travis.yml b/.travis.yml index 04dbd5b8..8318b654 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ language: ruby rvm: - - 2.3.0 + - 2.3 + - 2.4 + - 2.5 after_success: coveralls notifications: email: diff --git a/bin/codedeploy-agent b/bin/codedeploy-agent index a683d0c3..00ef95f2 100755 --- a/bin/codedeploy-agent +++ b/bin/codedeploy-agent @@ -2,7 +2,7 @@ $:.unshift File.join(File.dirname(File.expand_path('..', __FILE__)), 'lib') -ruby_versions = ["2.4", "2.3", "2.2", "2.1", "2.0"] +ruby_versions = ["2.5", "2.4", "2.3", "2.2", "2.1", "2.0"] actual_ruby_version = RUBY_VERSION.split('.').map{|s|s.to_i} left_bound = '2.0.0'.split('.').map{|s|s.to_i} ruby_bin = nil diff --git a/bin/install b/bin/install index ec10fbde..80f4b440 100755 --- a/bin/install +++ b/bin/install @@ -86,7 +86,7 @@ EOF end def supported_ruby_versions - ['2.4', '2.3', '2.2', '2.1', '2.0'] + ['2.5', '2.4', '2.3', '2.2', '2.1', '2.0'] end # check ruby version, only version 2.x works @@ -163,7 +163,7 @@ EOF # change interpreter when symlink /usr/bin/ruby2.x exists, but running with non-supported ruby version actual_ruby_version = RUBY_VERSION.split('.').map{|s|s.to_i} left_bound = '2.0.0'.split('.').map{|s|s.to_i} - right_bound = '2.4.1'.split('.').map{|s|s.to_i} + right_bound = '2.5.1'.split('.').map{|s|s.to_i} if (actual_ruby_version <=> left_bound) < 0 if(!@reexeced) @log.info("The current Ruby version is not 2.x! Restarting the installer with #{ruby_interpreter_path}")