middleman-deploy/Rakefile

30 lines
663 B
Ruby
Raw Normal View History

2012-08-20 06:38:16 +02:00
require 'bundler'
Bundler::GemHelper.install_tasks
# require 'cucumber/rake/task'
2012-08-20 06:38:16 +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'
# 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 :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