-
Notifications
You must be signed in to change notification settings - Fork 146
/
Rakefile
50 lines (42 loc) · 1.24 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
# frozen_string_literal: true
require 'rubygems'
require 'bundler/setup'
require 'bump'
require 'appraisal'
require 'honeybadger/version'
require_relative 'tools/release'
NAME = Dir['*.gemspec'].first.split('.').first.freeze
VERSION = Honeybadger::VERSION
GEM_FILE = "#{NAME}-#{VERSION}.gem".freeze
GEMSPEC_FILE = "#{NAME}.gemspec".freeze
require 'rdoc/task'
RDoc::Task.new do |rdoc|
rdoc.main = 'README.md'
rdoc.markup = 'tomdoc'
rdoc.rdoc_dir = 'doc'
rdoc.rdoc_files.include('README.md', 'lib/**/*.rb')
end
require 'rspec/core/rake_task'
namespace :spec do
desc 'Run unit specs'
RSpec::Core::RakeTask.new(:units) do |t|
t.pattern = 'spec/unit/**/*_spec.rb'
t.rspec_opts = '--require spec_helper'
end
desc 'Run integration specs'
RSpec::Core::RakeTask.new(:integrations) do |t|
t.pattern = 'spec/integration/**/*_spec.rb'
t.rspec_opts = '--require spec_helper'
end
desc 'Run feature specs'
RSpec::Core::RakeTask.new(:features) do |t|
t.pattern = 'spec/features/**/*_spec.rb'
t.rspec_opts = '--require spec_helper'
end
desc 'Runs unit and feature specs'
task all: [:units, :integrations, :features]
end
desc 'Alias for spec:all (default task)'
task spec: :'spec:all'
task test: :spec
task default: :spec