-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
39 lines (29 loc) · 902 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 "snowpacker"
begin
require "bundler/setup"
rescue LoadError
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
end
require "yard"
YARD::Rake::YardocTask.new do |t|
t.files = ["lib/**/*.rb", "README.md"] # optional
t.options = ["--title Snowpacker #{::Snowpacker::VERSION}", "--line-numbers", "--any", "--extra", "--opts"] # optional
t.stats_options = ["--list-undoc"] # optional
end
require "bundler/gem_tasks"
require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.test_files = Dir["test/**/*_test.rb"].reject do |path|
path.include?("rails_test_app") || path.include?("ruby_test_app")
end
t.verbose = true
end
Rake::TestTask.new(:"test:unit") do |t|
t.libs << "test"
t.test_files = Dir["test/unit/**/*_test.rb"]
t.verbose = true
end
require "standard/rake"
task default: :test