diff options
author | Cristian Bica <cristian.bica@gmail.com> | 2014-08-18 10:19:41 +0300 |
---|---|---|
committer | Cristian Bica <cristian.bica@gmail.com> | 2014-09-11 00:38:56 +0300 |
commit | 175ba6666453684bba3c24d03b75580a1f8e68bb (patch) | |
tree | 1d89d3d7452428eb0c11358b8ae37e4363030509 /ci | |
parent | 467e5700e6c759276406d8dc3604ede2c86235cb (diff) | |
download | rails-175ba6666453684bba3c24d03b75580a1f8e68bb.tar.gz rails-175ba6666453684bba3c24d03b75580a1f8e68bb.tar.bz2 rails-175ba6666453684bba3c24d03b75580a1f8e68bb.zip |
ActiveJob Integration Tests
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/travis.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ci/travis.rb b/ci/travis.rb index db6e41ecfa..3ccbd1dad4 100755 --- a/ci/travis.rb +++ b/ci/travis.rb @@ -48,6 +48,7 @@ class Build heading = [gem] heading << "with #{adapter}" if activerecord? heading << "in isolation" if isolated? + heading << "integration" if integration? heading.join(' ') end @@ -55,7 +56,7 @@ class Build if activerecord? ['db:mysql:rebuild', "#{adapter}:#{'isolated_' if isolated?}test"] else - ["test#{':isolated' if isolated?}"] + ["test", ('isolated' if isolated?), ('integration' if integration?)].compact.join(":") end end @@ -74,6 +75,10 @@ class Build options[:isolated] end + def integration? + component.split(':').last == 'integration' + end + def gem MAP[component.split(':').first] end @@ -93,11 +98,17 @@ class Build end end +if ENV['GEM']=='aj:integration' + ENV['QC_DATABASE_URL'] = 'postgres://postgres@localhost/active_jobs_qc_int_test' + ENV['QUE_DATABASE_URL'] = 'postgres://postgres@localhost/active_jobs_que_int_test' +end + results = {} ENV['GEM'].split(',').each do |gem| [false, true].each do |isolated| next if gem == 'railties' && isolated + next if gem == 'aj:integration' && isolated build = Build.new(gem, :isolated => isolated) results[build.key] = build.run! |