1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

set the environment variable from the rake file

This commit is contained in:
Aaron Patterson 2011-06-06 16:51:28 -07:00
parent 424cf3b050
commit 8392f10b58
18 changed files with 6 additions and 18 deletions

View file

@ -50,7 +50,6 @@ end
t.verbose = true t.verbose = true
t.warning = true t.warning = true
t.ruby_opts = ["-r#{File.expand_path('../', __FILE__)}/test/connections/#{adapter}"]
} }
task "isolated_test_#{adapter}" do task "isolated_test_#{adapter}" do
@ -67,7 +66,13 @@ end
namespace adapter do namespace adapter do
task :test => "test_#{adapter}" task :test => "test_#{adapter}"
task :isolated_test => "isolated_test_#{adapter}" task :isolated_test => "isolated_test_#{adapter}"
# Set the connection environment for the adapter
task :env { ENV['ARCONN'] = adapter }
end end
# Make sure the adapter test evaluates the env setting task
task "test_#{adapter}" => "#{adapter}:env"
end end
rule '.sqlite3' do |t| rule '.sqlite3' do |t|

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'db2'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'firebird'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'frontbase'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'jdbcderby'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'jdbch2'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'jdbchsqldb'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'jdbcmysql'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'jdbcpostgresql'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'jdbcsqlite3'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'mysql'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'mysql2'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'openbase'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'oracle_enhanced'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'postgresql'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'sqlite3'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'sqlite3_mem'

View file

@ -1 +0,0 @@
ENV['ARCONN'] = 'sybase'