diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d691d37d3f..e15e939763 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,7 @@ jobs: } - if: matrix.ruby-version == '2.4.10' - name: Prepare mysql dirextory + name: Prepare mysql directory run: sudo chown -R $USER /usr/local - if: matrix.ruby-version == '2.4.10' diff --git a/.github/workflows/ci_cron.yml b/.github/workflows/ci_cron.yml index 922c7f843e..093e2e1b48 100644 --- a/.github/workflows/ci_cron.yml +++ b/.github/workflows/ci_cron.yml @@ -84,7 +84,7 @@ jobs: } - if: matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10' - name: Prepare mysql dirextory + name: Prepare mysql directory run: sudo chown -R $USER /usr/local - if: matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10' diff --git a/.github/workflows/scripts/setup_bundler b/.github/workflows/scripts/setup_bundler index 14a3187c7e..283d75fe97 100755 --- a/.github/workflows/scripts/setup_bundler +++ b/.github/workflows/scripts/setup_bundler @@ -57,6 +57,17 @@ function install_desired_bundler_version { gem list bundler } +function configure_bundler { + if ! [[ $RUBY_VERSION =~ 2.4 ]]; then + echo "DEBUG: Ruby is not at version 2.4.x, skipping 'bundler config'" + return + fi + + # add mysql specific config for bundler when we are using older mysql + echo "DEBUG: running 'bundle config'" + bundle config --global build.mysql2 --with-mysql-config=/usr/local/mysql55/bin/mysql_config +} + function install_ruby_version_specific_gems { if using_jruby; then echo "DEBUG: Skipping specific gem installation, as JRuby is in use" @@ -90,6 +101,7 @@ function set_up_bundler { update_to_desired_rubygems_version install_desired_bundler_version + configure_bundler } echo "DEBUG: setting up Bundler" diff --git a/test/environments/rails40/Gemfile b/test/environments/rails40/Gemfile index e39076e114..9295075a89 100644 --- a/test/environments/rails40/Gemfile +++ b/test/environments/rails40/Gemfile @@ -2,7 +2,7 @@ source 'https://rubygems.org' -gem 'rake', '~> 12.3.3' +gem 'rake', '10.0.4' gem 'rails', '~> 4.0.0' gem 'minitest', '4.7.5', require: false # Minitest ~> 4.2 required for Rails 3.2 diff --git a/test/environments/rails41/Gemfile b/test/environments/rails41/Gemfile index 69b64bedb9..ead1bcd698 100644 --- a/test/environments/rails41/Gemfile +++ b/test/environments/rails41/Gemfile @@ -2,7 +2,7 @@ source 'https://rubygems.org' -gem 'rake', '~> 12.3.3' +gem 'rake', '10.0.4' gem 'rails', '~> 4.1.0' gem 'minitest', '5.2.3'