middleman-deploy/Rakefile

36 lines
735 B
Ruby
Raw Normal View History

2012-08-20 06:38:16 +02:00
require 'bundler'
Bundler::GemHelper.install_tasks
2012-08-22 19:54:13 +02:00
require 'cucumber/rake/task'
2012-08-20 06:38:16 +02:00
2012-08-22 19:54:13 +02:00
Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
t.cucumber_opts = "--color --tags ~@wip --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
end
2012-08-20 06:38:16 +02:00
require 'rake/clean'
2012-08-22 19:54:13 +02:00
task :test => ["cucumber"]
2012-08-20 19:52:29 +02:00
require "middleman-deploy/pkg-info"
PACKAGE = "#{Middleman::Deploy::PACKAGE}"
VERSION = "#{Middleman::Deploy::VERSION}"
task :package do
2012-08-20 19:52:29 +02:00
system "gem build #{PACKAGE}.gemspec"
end
task :install => :package do
2012-08-21 02:11:30 +02:00
Dir.chdir("pkg") do
system "gem install #{PACKAGE}-#{VERSION}"
end
2012-08-20 19:52:29 +02:00
end
task :release => :package do
2012-08-21 02:11:30 +02:00
Dir.chdir("pkg") do
system "gem push #{PACKAGE}-#{VERSION}"
end
2012-08-20 19:52:29 +02:00
end
2012-08-22 20:51:43 +02:00
task :default => :test