Sha256: bc4c02af102b4a68de168c50520543d3a9089b589ffbfe321d2639d4f2695352

Contents?: true

Size: 780 Bytes

Versions: 3

Compression:

Stored size: 780 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

ADAPTERS = %w[
  mysql
  postgresql
  sqlite3
]
AR_VERSIONS = %w[
  6.0.2.1
  5.2.4.1
]

ORIGINAL_AR_VERSION = `bundle show activerecord`.split("-").last.strip

AR_VERSIONS.each do |ar_version|
  puts "----> Running tests with ActiveRecord #{ar_version}"
  system("ACTIVE_RECORD_VERSION=#{ar_version} bundle update activerecord") unless ar_version == ORIGINAL_AR_VERSION
  ADAPTERS.each do |adapter|
    puts "----> Running tests with #{adapter} adapter"
    system("DATABASE_ADAPTER=#{adapter} ACTIVE_RECORD_VERSION=#{ar_version} bundle exec rake")
  end
end

puts "----> Reverting back to original ActiveRecord version (#{ORIGINAL_AR_VERSION})"
system("ACTIVE_RECORD_VERSION=#{ORIGINAL_AR_VERSION} bundle update activerecord")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activerecord-cte-0.1.3 bin/test
activerecord-cte-0.1.1 bin/test
activerecord-cte-0.1.0 bin/test