forked from traject/traject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
28 lines (23 loc) · 842 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
begin
require 'bundler/setup'
require "bundler/gem_tasks"
rescue LoadError
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
end
require 'rake'
require 'rake/testtask'
task :default => [:test]
Rake::TestTask.new do |t|
# Rake 11 makes warnings on by default, but there is so much noise, including
# from our dependencies, and from things I think are silly warnings like
# "shadowing outer local variable"
# Possibly could turn back on in the future using https://rubygems.org/gems/warning/versions/0.10.0
# gem to customize.
t.warning = false
t.pattern = 'test/**/*_test.rb'
t.libs.push 'test', 'test_support'
end
# Not documented well, but this seems to be
# the way to load rake tasks from other files
#import "lib/tasks/load_map.rake"
Dir.glob('lib/tasks/*.rake').each { |r| import r}