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:
parent
424cf3b050
commit
8392f10b58
18 changed files with 6 additions and 18 deletions
|
@ -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|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'db2'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'firebird'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'frontbase'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'jdbcderby'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'jdbch2'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'jdbchsqldb'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'jdbcmysql'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'jdbcpostgresql'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'jdbcsqlite3'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'mysql'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'mysql2'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'openbase'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'oracle_enhanced'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'postgresql'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'sqlite3'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'sqlite3_mem'
|
|
|
@ -1 +0,0 @@
|
||||||
ENV['ARCONN'] = 'sybase'
|
|
Loading…
Reference in a new issue