octofacts/Rakefile

29 строки
930 B
Ruby
Исходник Обычный вид История

2017-10-06 17:23:14 +03:00
require "rake"
2017-10-06 16:15:17 +03:00
require "rspec/core/rake_task"
2017-10-06 17:23:14 +03:00
require_relative "rake/gem"
2017-10-06 16:15:17 +03:00
namespace :octofacts do
2024-01-09 02:44:37 +03:00
task :default => [ ":octofacts:spec:octofacts", ":octofacts:spec:octofacts_updater", ":octofacts:spec:octofacts_integration" ] do
2017-10-06 16:15:17 +03:00
end
end
RSpec::Core::RakeTask.new(:octofacts:spec:octofacts) do |t|
2017-10-06 16:15:17 +03:00
t.pattern = File.join(File.dirname(__FILE__), "spec/octofacts/**/*_spec.rb")
t.name = "octofacts"
ENV["SPEC_NAME"] = "octofacts"
end
RSpec::Core::RakeTask.new(:octofacts:spec:octofacts_updater) do |t|
2017-10-06 16:15:17 +03:00
t.pattern = File.join(File.dirname(__FILE__), "spec/octofacts_updater/**/*_spec.rb")
t.name = "octofacts-updater"
ENV["SPEC_NAME"] = "octofacts_updater"
end
RSpec::Core::RakeTask.new(:"octofacts:spec:octofacts_integration") do |t|
t.pattern = File.join(File.dirname(__FILE__), "spec/integration/**/*_spec.rb")
t.name = "octofacts-integration"
ENV.delete("SPEC_NAME")
end
task default: :"octofacts:default"