-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
52 lines (38 loc) · 1.09 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
45
46
47
48
49
50
51
################################################################################
# Test Tasks
task :default => :spec
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/bbc/**/*_spec.rb']
end
desc 'Run integration tests (requires redux login)'
RSpec::Core::RakeTask.new(:integration) do |spec|
spec.pattern = FileList['spec/integration/**/*_spec.rb']
end
desc 'Open coverage report'
task :coverage do
sh 'open coverage/index.html'
end
desc 'Open IRB with library loaded'
task :console do
sh 'irb -Ilib -r bbc/redux'
end
################################################################################
# Documentation Tasks
require 'yard'
YARD::Rake::YardocTask.new(:doc) do |t|
t.files = [ 'lib/bbc/**/*.rb' ]
t.options = [
'--no-private',
'--output-dir', 'docs/yard',
'--readme', 'README.md'
]
end
################################################################################
# Gem building Tasks
namespace :gem do
desc 'Build gem file'
task :build do
sh 'bundle exec gem build bbc_redux.gemspec'
end
end