Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (30 sloc) 0.784 kb
db045db @dhh Initial
dhh authored
1 require 'rake/testtask'
2 require 'rake/packagetask'
79e9a29 @vijaydev fixes Rake::GemPackageTask deprecation warnings from rake 0.9.0
vijaydev authored
3 require 'rubygems/package_task'
db045db @dhh Initial
dhh authored
4
5 desc "Default Task"
6 task :default => [ :test ]
7
8 # Run the unit tests
9 Rake::TestTask.new { |t|
10 t.libs << "test"
bd96614 Move old tests to a specific folder and add some delivery method tests.
José Valim and Mikel Lindsaar authored
11 t.pattern = 'test/**/*_test.rb'
38e8d5b @josh Enable warnings for mailer tests
josh authored
12 t.warning = true
bfb84cf @arunagw Verbose output for tests.
arunagw authored
13 t.verbose = true
db045db @dhh Initial
dhh authored
14 }
15
bbb3e5a @jeremy Unify test:isolated across components and run by default at toplevel
jeremy authored
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
19 Dir.glob("test/**/*_test.rb").all? do |file|
9a57a22 @spastorino sorry, the CI cannot lie to us anymore (Part II)
spastorino authored
20 sh(ruby, '-Ilib:test', file)
bbb3e5a @jeremy Unify test:isolated across components and run by default at toplevel
jeremy authored
21 end or raise "Failures"
22 end
e8550ee @jeremy Cherry-pick core extensions
jeremy authored
23 end
db045db @dhh Initial
dhh authored
24
f430d6b @josh Make gemspecs the authoritative source instead of generating them fro…
josh authored
25 spec = eval(File.read('actionmailer.gemspec'))
db045db @dhh Initial
dhh authored
26
79e9a29 @vijaydev fixes Rake::GemPackageTask deprecation warnings from rake 0.9.0
vijaydev authored
27 Gem::PackageTask.new(spec) do |p|
db045db @dhh Initial
dhh authored
28 p.gem_spec = spec
29 end
30
c1785f3 @jeremy Release using gemcutter gem:push tasks
jeremy authored
31 desc "Release to gemcutter"
459ecaf @jeremy Submarine the rake-gemcutter dep in Rakefiles
jeremy authored
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.