Skip to content
Newer
Older
100755 37 lines (30 sloc) 787 Bytes
cb15709 @raggi Rakefiles are executables, and rake loads rake, not rakefile code
raggi authored Nov 25, 2010
1 #!/usr/bin/env rake
db045db @dhh Initial
dhh authored Nov 24, 2004
2 require 'rake/testtask'
3 require 'rake/packagetask'
4 require 'rake/gempackagetask'
5
6 desc "Default Task"
7 task :default => [ :test ]
8
9 # Run the unit tests
10 Rake::TestTask.new { |t|
11 t.libs << "test"
bd96614 Move old tests to a specific folder and add some delivery method tests.
José Valim and Mikel Lindsaar authored Jan 24, 2010
12 t.pattern = 'test/**/*_test.rb'
38e8d5b @josh Enable warnings for mailer tests
josh authored Nov 9, 2009
13 t.warning = true
db045db @dhh Initial
dhh authored Nov 24, 2004
14 }
15
bbb3e5a @jeremy Unify test:isolated across components and run by default at toplevel
jeremy authored Nov 10, 2009
16 namespace :test do
17 task :isolated do
18 ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
bd96614 Move old tests to a specific folder and add some delivery method tests.
José Valim and Mikel Lindsaar authored Jan 24, 2010
19 Dir.glob("test/**/*_test.rb").all? do |file|
9a57a22 @spastorino sorry, the CI cannot lie to us anymore (Part II)
spastorino authored Jan 13, 2011
20 sh(ruby, '-Ilib:test', file)
bbb3e5a @jeremy Unify test:isolated across components and run by default at toplevel
jeremy authored Nov 11, 2009
21 end or raise "Failures"
22 end
e8550ee @jeremy Cherry-pick core extensions
jeremy authored May 13, 2009
23 end
db045db @dhh Initial
dhh authored Nov 24, 2004
24
f430d6b @josh Make gemspecs the authoritative source instead of generating them fro…
josh authored Sep 25, 2009
25 spec = eval(File.read('actionmailer.gemspec'))
db045db @dhh Initial
dhh authored Nov 24, 2004
26
27 Rake::GemPackageTask.new(spec) do |p|
28 p.gem_spec = spec
29 end
30
c1785f3 @jeremy Release using gemcutter gem:push tasks
jeremy authored Feb 4, 2010
31 desc "Release to gemcutter"
459ecaf @jeremy Submarine the rake-gemcutter dep in Rakefiles
jeremy authored Feb 5, 2010
32 task :release => :package do
33 require 'rake/gemcutter'
34 Rake::Gemcutter::Tasks.new(spec).define
35 Rake::Task['gem:push'].invoke
36 end
Something went wrong with that request. Please try again.