forked from mrmemes-eth/tomatoist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
28 lines (24 loc) · 636 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
begin
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
rescue LoadError
puts "RSpec and/or Cucumber are unavailable"
end
desc "Run specs"
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rspec_opts = %w(-fs --color)
end
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "--format pretty --tags ~@wip"
end
task default: [:spec, :features]
desc "Package for webstore"
task :pkg do
require 'zippy'
Zippy.create('tomatoist.zip') do |zip|
Dir.glob('webstore/**/*').each do |file|
zip[file] = File.open(file) unless File.directory?(file)
end
end
end