middleman-deploy/Rakefile

30 lines
653 B
Ruby
Raw Normal View History

2012-08-20 06:38:16 +02:00
require 'bundler'
Bundler::GemHelper.install_tasks
require 'cucumber/rake/task'
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
require 'rake/clean'
2012-08-20 19:52:29 +02:00
task :test => ["cucumber"]
require "middleman-deploy/pkg-info"
PACKAGE = "#{Middleman::Deploy::PACKAGE}"
VERSION = "#{Middleman::Deploy::VERSION}"
task :build do
system "gem build #{PACKAGE}.gemspec"
end
task :install => :build do
system "gem install pkg/#{PACKAGE}-#{VERSION}"
end
task :release => :build do
system "gem push pkg/#{PACKAGE}-#{VERSION}"
end