-
Notifications
You must be signed in to change notification settings - Fork 8
/
Rakefile
36 lines (27 loc) · 717 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
# frozen_string_literal: true
require "bundler/setup"
require "bundler/gem_tasks"
require "rake/extensiontask"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
load "rails/tasks/engine.rake"
load "rails/tasks/statistics.rake"
task(compile: []) do
Dir.chdir("ext/enterprise_script_service") do
sh("../../bin/rake")
end
end
Rake::Task[:clean].enhance do
sh("script/mkmruby", "clean")
end
Rake::Task[:clobber].enhance do
sh("script/mkmruby", "clobber")
end
task(mrproper: []) do
Dir.chdir("ext/enterprise_script_service") do
sh("../../bin/rake", "mrproper")
end
end
task(spec: [:compile])
task(default: [:spec])