Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 34 lines (29 sloc) 0.941 kb
d31f4e10 » darrinholst
2009-12-16 new version
1 require 'rubygems'
2 require 'rake'
3 require 'rake/clean'
4 require 'rake/testtask'
44f88f3f » Charlie Savage
2011-05-26 Update to 3.2.0.beta1 and remove fix some rake deprecations.
5 require 'rubygems/package_task'
10435616 » Charlie Savage
2010-09-13 Simplify connection specs a bit and move under tests.
6
7b383f3b » Charlie Savage
2010-11-06 Update gem spec and bump to version to 3.0.0.b (for prelease beta)
7 # Set global variable so other tasks can access them
1629626e » Charlie Savage
2011-03-06 Make rake tasks work with rake 0.9 beta
8 ::PROJECT_ROOT = File.expand_path(".")
9 ::GEM_NAME = 'composite_primary_keys'
7b383f3b » Charlie Savage
2010-11-06 Update gem spec and bump to version to 3.0.0.b (for prelease beta)
10
7e1f83ba » Charlie Savage
2010-11-28 Move gemspec out of Rake file to use more modern gem packaging techni…
11 # Read the spec file
12 spec = Gem::Specification.load("#{GEM_NAME}.gemspec")
d31f4e10 » darrinholst
2009-12-16 new version
13
7e1f83ba » Charlie Savage
2010-11-28 Move gemspec out of Rake file to use more modern gem packaging techni…
14 # Setup Rake tasks for managing the gem
44f88f3f » Charlie Savage
2011-05-26 Update to 3.2.0.beta1 and remove fix some rake deprecations.
15 Gem::PackageTask.new(spec).define
10435616 » Charlie Savage
2010-09-13 Simplify connection specs a bit and move under tests.
16
7e1f83ba » Charlie Savage
2010-11-28 Move gemspec out of Rake file to use more modern gem packaging techni…
17 # Now load in other task files
7b383f3b » Charlie Savage
2010-11-06 Update gem spec and bump to version to 3.0.0.b (for prelease beta)
18 Dir.glob('tasks/**/*.rake').each do |rake_file|
19 load File.join(File.dirname(__FILE__), rake_file)
d071864e » ccabot
2010-12-06 re-add rake tasks to run db-specific tests
20 end
21
0b337c87 » ccabot
2010-12-20 changed the way unit tests are run so they can have a default adapter
22 # Set up test tasks for each supported connection adapter
7350591c » jnv
2011-08-09 Rake: Rename sqlite:test task to sqlite3:test for consistency
23 %w(mysql sqlite3 oracle oracle_enhanced postgresql ibm_db).each do |adapter|
0b337c87 » ccabot
2010-12-20 changed the way unit tests are run so they can have a default adapter
24 namespace adapter do
25 desc "Run tests using the #{adapter} adapter"
26 task "test" do
27 ENV["ADAPTER"] = adapter
28 Rake::TestTask.new("subtest_#{adapter}") do |t|
29 t.libs << "test"
30 end
31 Rake::Task["subtest_#{adapter}"].invoke
32 end
d071864e » ccabot
2010-12-06 re-add rake tasks to run db-specific tests
33 end
34 end
Something went wrong with that request. Please try again.