This repository has been archived by the owner on May 17, 2023. It is now read-only.
forked from ruport/ruport-util
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
60 lines (48 loc) · 1.34 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
52
53
54
55
56
57
58
59
###############################################
=begin
require 'rake'
task :default => [:test]
desc "Run all tests"
Spec::Rake::SpecTask.new('test') do |t|
t.spec_files = FileList['test/test_*.rb']
end
desc "Generate specdocs for examples for inclusion in RDoc"
Spec::Rake::SpecTask.new('specdoc') do |t|
t.spec_files = FileList['test/test_*.rb']
t.spec_opts = ["--format", "rdoc"]
t.out = 'EXAMPLES.rd'
end
desc "Generate HTML report for failing examples"
Spec::Rake::SpecTask.new('failing_examples_with_html') do |t|
t.spec_files = FileList['test/test_*.rb']
t.spec_opts = ["--format", "html:failing_examples.html", "--diff"]
t.fail_on_error = false
end
=end
########################################################
require 'rubygems'
begin
require 'bundler'
rescue LoadError => e
STDERR.puts e.message
STDERR.puts "Run `gem install bundler` to install Bundler."
exit e.status_code
end
begin
Bundler.setup(:development)
rescue Bundler::BundlerError => e
STDERR.puts e.message
STDERR.puts "Run `bundle install` to install missing gems."
exit e.status_code
end
require 'rake'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
task :test => :spec
task :default => :spec
require 'ore/specification'
require 'jeweler'
Jeweler::Tasks.new(Ore::Specification.new)
require 'yard'
YARD::Rake::YardocTask.new
task :doc => :yard