forked from evilmartians/ruby-on-whales
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
26 lines (21 loc) · 574 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
# frozen_string_literal: true
require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
t.warning = false
end
namespace :test do
task :isolated do
Dir.glob("test/**/*_test.rb").all? do |file|
sh(Gem.ruby, "-I#{__dir__}/lib:#{__dir__}/test", file)
end || raise("Failures")
end
end
desc "Generate installation template"
task :compile do
require "ruby_bytes/cli"
RubyBytes::CLI.new.run("compile", "./template/ruby-on-whales.rb")
end
task default: %w[test:isolated]