Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 60 lines (47 sloc) 1.507 kb
db045db @dhh Initial
dhh authored
1 require 'rake/testtask'
79e9a29 @vijaydev fixes Rake::GemPackageTask deprecation warnings from rake 0.9.0
vijaydev authored
2 require 'rubygems/package_task'
db045db @dhh Initial
dhh authored
3
4 require 'date'
07989b6 @dhh Added automated rewriting of the shebang lines on installs through the g...
dhh authored
5 require 'rbconfig'
db045db @dhh Initial
dhh authored
6
53c13f1 @anildigital Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [#4477 state:reso...
anildigital authored
7
f08da31 @jeremy Move Railties' Dispatcher to ActionController::Dispatcher, introduce bef...
jeremy authored
8 task :default => :test
bbb3e5a @jeremy Unify test:isolated across components and run by default at toplevel
jeremy authored
9 task :test => 'test:isolated'
f08da31 @jeremy Move Railties' Dispatcher to ActionController::Dispatcher, introduce bef...
jeremy authored
10
bbb3e5a @jeremy Unify test:isolated across components and run by default at toplevel
jeremy authored
11 namespace :test do
12 task :isolated do
13 dir = ENV["TEST_DIR"] || "**"
60ab925 @jeremy Don't halt railties tests on failures
jeremy authored
14 Dir["test/#{dir}/*_test.rb"].each do |file|
bbb3e5a @jeremy Unify test:isolated across components and run by default at toplevel
jeremy authored
15 next true if file.include?("fixtures")
0f04260 @tenderlove railties depends on actionpack, so put actionpack in the include path
tenderlove authored
16 dash_i = [
17 'test',
18 'lib',
19 "#{File.dirname(__FILE__)}/../activesupport/lib",
36dd185 @spastorino Remove useless load path modifications
spastorino authored
20 "#{File.dirname(__FILE__)}/../actionpack/lib",
21 "#{File.dirname(__FILE__)}/../activemodel/lib"
0f04260 @tenderlove railties depends on actionpack, so put actionpack in the include path
tenderlove authored
22 ]
23 ruby "-I#{dash_i.join ':'}", file
60ab925 @jeremy Don't halt railties tests on failures
jeremy authored
24 end
bbb3e5a @jeremy Unify test:isolated across components and run by default at toplevel
jeremy authored
25 end
e7eae2b @NZKoz Interim test task for railties, the existing one fails suspiciously.
NZKoz authored
26 end
27
bbb3e5a @jeremy Unify test:isolated across components and run by default at toplevel
jeremy authored
28 Rake::TestTask.new('test:regular') do |t|
ab32126 @jeremy No more free lunch
jeremy authored
29 t.libs << 'test' << "#{File.dirname(__FILE__)}/../activesupport/lib"
dafd5c1 @jeremy make the railties test task available
jeremy authored
30 t.pattern = 'test/**/*_test.rb'
31 t.warning = true
32 t.verbose = true
33 end
f29ce1f @jeremy r3023@asus: jeremy | 2005-07-12 23:43:39 -0700
jeremy authored
34
a08a8cd @josevalim Add update tasks.
josevalim authored
35 # Update spinoffs -------------------------------------------------------------------
12ff2f7 @dhh Rake task to update spin off libraries #1514 [Tobias Luetke]
dhh authored
36
b50635a @tenderlove update Rakefiles for RDoc 2.5
tenderlove authored
37 desc "Updates application README to the latest version Railties README"
38 task :update_readme do
39 readme = "lib/rails/generators/rails/app/templates/README"
40 rm readme
41 cp "./README.rdoc", readme
42 end
43
db045db @dhh Initial
dhh authored
44 # Generate GEM ----------------------------------------------------------------------------
45
8ff310a Break up rails and railties:
Carlhuda authored
46 spec = eval(File.read('railties.gemspec'))
db045db @dhh Initial
dhh authored
47
79e9a29 @vijaydev fixes Rake::GemPackageTask deprecation warnings from rake 0.9.0
vijaydev authored
48 Gem::PackageTask.new(spec) do |pkg|
4ece57c @dhh Dont run tests on gem creation
dhh authored
49 pkg.gem_spec = spec
db045db @dhh Initial
dhh authored
50 end
51
065cb2a @dhh Made ready for better release automation
dhh authored
52 # Publishing -------------------------------------------------------
0b37572 @josevalim Clean up railties Rakefile from old responsibilities which are now part ...
josevalim authored
53
c1785f3 @jeremy Release using gemcutter gem:push tasks
jeremy authored
54 desc "Release to gemcutter"
459ecaf @jeremy Submarine the rake-gemcutter dep in Rakefiles
jeremy authored
55 task :release => :package do
56 require 'rake/gemcutter'
57 Rake::Gemcutter::Tasks.new(spec).define
58 Rake::Task['gem:push'].invoke
59 end
Something went wrong with that request. Please try again.