forked from razum2um/lurker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
44 lines (36 loc) · 1.05 KB
/
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
36
37
38
39
40
41
42
43
44
require "bundler/gem_tasks"
require 'bundler/setup'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
require 'coveralls/rake/task'
Dir["#{File.expand_path('..', __FILE__)}/tasks/**/*.rake"].each { |f| load f }
desc 'pry console for gem'
task :c do
require 'pry'
require 'lurker'
require 'lurker/cli'
ARGV.clear
Pry.start
end
ENV['COVERALLS_NOISY'] = '1'
Coveralls::RakeTask.new
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = "--format progress"
end
Cucumber::Rake::Task.new(:cucumber) do |t|
t.cucumber_opts = "features --format progress --tags ~@wip"
end
task :default => ["clobber:coverage", :spec, :regenerate, :cucumber, 'coveralls:push']
desc 'releases gem & updates docs'
task :publish do
require 'lurker'
version = Lurker::VERSION
Bundler.with_clean_env do
system "git tag v#{version}"
system "relish versions:add razum2um/lurker:#{version}"
system "relish push razum2um/lurker:#{version}"
system "gem build lurker.gemspec"
system "git push --tags"
system "gem push lurker-#{version}.gem"
end
end