2023-07-17 14:14:16 +01:00
|
|
|
require "rake/testtask"
|
|
|
|
|
2023-07-21 09:34:26 +01:00
|
|
|
HERE = __dir__
|
|
|
|
|
2023-07-17 14:14:16 +01:00
|
|
|
Rake::TestTask.new do |t|
|
|
|
|
t.pattern = "test/**/*_test.rb"
|
|
|
|
end
|
2023-07-21 09:34:26 +01:00
|
|
|
|
2023-07-17 14:14:16 +01:00
|
|
|
task default: :test
|
2023-07-21 09:34:26 +01:00
|
|
|
task :events do
|
|
|
|
filepath = File.join(HERE, "examples", "events", "main.rb")
|
|
|
|
ruby filepath
|
|
|
|
end
|
|
|
|
task :midi do
|
|
|
|
filepath = File.join(HERE, "examples", "midi", "main.rb")
|
|
|
|
ruby filepath
|
|
|
|
end
|
|
|
|
task :obs do
|
|
|
|
targetdir = File.join(HERE, "examples", "obs")
|
|
|
|
Dir.chdir(targetdir)
|
|
|
|
bundle exec ruby File.join(targetdir, "main.rb")
|
|
|
|
end
|