forked from gsamokovarov/web-console
-
Notifications
You must be signed in to change notification settings - Fork 176
/
Rakefile
29 lines (22 loc) · 614 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
# frozen_string_literal: true
begin
require "bundler/setup"
rescue LoadError
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
end
require "socket"
require "rake/testtask"
require "tmpdir"
require "securerandom"
require "json"
require "web_console/testing/erb_precompiler"
EXPANDED_CWD = File.expand_path(File.dirname(__FILE__))
Rake::TestTask.new(:test) do |t|
t.libs << "lib"
t.libs << "test"
t.pattern = "test/**/*_test.rb"
t.verbose = false
end
Dir["lib/web_console/tasks/**/*.rake"].each { |task| load task }
Bundler::GemHelper.install_tasks
task default: :test