forked from karlfreeman/middleman-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
35 lines (25 loc) · 735 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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'
task :test => ["cucumber"]
require "middleman-deploy/pkg-info"
PACKAGE = "#{Middleman::Deploy::PACKAGE}"
VERSION = "#{Middleman::Deploy::VERSION}"
task :package do
system "gem build #{PACKAGE}.gemspec"
end
task :install => :package do
Dir.chdir("pkg") do
system "gem install #{PACKAGE}-#{VERSION}"
end
end
task :release => :package do
Dir.chdir("pkg") do
system "gem push #{PACKAGE}-#{VERSION}"
end
end
task :default => :test