forked from njh/ruby-mqtt
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
30 lines (23 loc) · 643 Bytes
/
Rakefile
File metadata and controls
30 lines (23 loc) · 643 Bytes
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
#!/usr/bin/env ruby
$:.push File.expand_path("../lib", __FILE__)
require 'rubygems'
require 'yard'
require 'rspec/core/rake_task'
require "bundler/gem_tasks"
RSpec::Core::RakeTask.new(:spec)
namespace :spec do
desc 'Run RSpec code examples in specdoc mode'
RSpec::Core::RakeTask.new(:doc) do |t|
t.rspec_opts = %w(--backtrace --colour --format doc)
end
end
namespace :doc do
YARD::Rake::YardocTask.new
desc "Generate HTML report specs"
RSpec::Core::RakeTask.new("spec") do |spec|
spec.rspec_opts = ["--format", "html", "-o", "doc/spec.html"]
end
end
task :test => :spec
task :specs => :spec
task :default => :spec