-
Notifications
You must be signed in to change notification settings - Fork 5
/
Rakefile
39 lines (31 loc) · 810 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
35
36
37
38
39
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rake/testtask"
require "rubocop/rake_task"
require "yard"
namespace :test do
Rake::TestTask.new :acceptance do |t|
t.description = "Run acceptance tests"
t.libs << "test"
t.test_files = ["test/acceptance/test.rb"]
end
Rake::TestTask.new :unit do |t|
t.description = "Run unit tests"
t.libs << "test"
t.test_files = FileList["test/**/*_test.rb"]
end
end
desc "Run all tests"
task :test => ["test:unit", "test:acceptance"]
RuboCop::RakeTask.new do |t|
t.formatters = ["fuubar"]
end
desc "Generate documentation"
YARD::Rake::YardocTask.new
namespace :yard do
desc "Run documentation server"
task :server do
exec "bin/yard", "server", "--reload"
end
end
task :default => ["test:unit", :rubocop]