2012-08-20 06:38:16 +02:00
|
|
|
require 'bundler'
|
|
|
|
Bundler::GemHelper.install_tasks
|
|
|
|
|
2012-08-20 22:09:42 +02:00
|
|
|
# require 'cucumber/rake/task'
|
2012-08-20 06:38:16 +02:00
|
|
|
|
2012-08-20 22:09:42 +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-20 22:09:42 +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 :build do
|
|
|
|
system "gem build #{PACKAGE}.gemspec"
|
|
|
|
end
|
|
|
|
|
|
|
|
task :install => :build 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 => :build 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
|