diff --git a/.travis.yml b/.travis.yml index d3f734a..946a730 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,14 @@ services: - postgresql rvm: - 2.5.7 + - 2.7.2 before_install: gem install bundler -v 2.1.4 before_script: - psql -c 'CREATE DATABASE pg_sql_caller_test;' -U postgres - cp -v spec/config/database.travis.yml spec/config/database.yml +script: bundle exec rake +env: + matrix: + - AR=5.2.0 + - AR=6.0.0 + - AR=6.1.0 diff --git a/Gemfile b/Gemfile index cbdb778..72732c6 100644 --- a/Gemfile +++ b/Gemfile @@ -5,6 +5,7 @@ source 'https://rubygems.org' # Specify your gem's dependencies in pg_sql_caller.gemspec gemspec +gem 'activerecord', "~> #{ENV.fetch('AR', '6.0.0')}" gem 'database_cleaner' gem 'pg' gem 'rake', '~> 12.0'