Rakefile in twitter-text-2.0.0 vs Rakefile in twitter-text-2.0.1
- old
+ new
@@ -1,20 +1,29 @@
require 'bundler'
include Rake::DSL
Bundler::GemHelper.install_tasks
-task :default => ['spec', 'test:conformance']
+task :build => ['prebuild']
+task :spec => ['prebuild']
+task :default => ['prebuild', 'spec', 'test:conformance']
task :test => :spec
+directory "config"
+
+desc "Prebuild task setup"
+task :prebuild => ["config"] do
+ FileUtils.cp_r '../config/.', 'config', :verbose => true
+end
+
require 'rubygems'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
namespace :test do
namespace :conformance do
desc "Run conformance test suite"
- task :run do
+ task :run => ['prebuild'] do
ruby '-rubygems', "test/conformance_test.rb"
end
end
desc "Run conformance test suite"
@@ -31,6 +40,11 @@
end
end
desc "Run cruise control build"
task :cruise => [:spec, 'test:conformance'] do
+end
+
+desc "Clean build"
+task :clean do
+ rm_rf ["config", "pkg", "Gemfile.lock"]
end