-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
34 lines (27 loc) · 624 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
require 'bundler/gem_tasks'
require 'bundler/setup'
require 'rspec/core/rake_task'
require 'flay_task'
require 'flog_task'
require 'pry'
Bundler.setup
task :console do
Bundler.require
pry
end
RSpec::Core::RakeTask.new :spec_no_cov do |t|
t.rspec_opts = '--color --format=documentation'
end
task :cov do
ENV['COVERAGE'] = 'true'
end
FLAY_FLOG_OPTS_BLOCK = lambda do |t|
t.dirs = ['lib']
t.verbose = true
t.threshold = 1000
end
FlayTask.new &FLAY_FLOG_OPTS_BLOCK
FlogTask.new &FLAY_FLOG_OPTS_BLOCK
task :ci => [:spec_no_cov]
task :spec => [:cov, :spec_no_cov]
task :default => [:cov, :spec, :flay, :flog]