Skip to content

Commit

Permalink
Unfreeze specs collection
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Jan 2, 2025
1 parent 099f985 commit 25d6531
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,38 @@

require 'bundler/gem_tasks'

SPEC_RESULTS = {}.freeze
spec_results = {}

desc 'Run all specs'
task :spec do
%w[core repository changeset rom].map do |name|
Rake::Task["spec:#{name}"].execute
end

if SPEC_RESULTS.values.any? { |v| v.equal?(false) }
if spec_results.values.any? { |v| v.equal?(false) }
abort("\nspecs failed\n")
end
end

namespace :spec do
desc 'Run rom specs'
task :rom do
SPEC_RESULTS[:rom] = system('bundle exec rspec spec/**/*_spec.rb')
spec_results[:rom] = system('bundle exec rspec spec/**/*_spec.rb')
end

desc 'Run core specs'
task :core do
SPEC_RESULTS[:core] = system('cd core && bundle exec rake spec')
spec_results[:core] = system('cd core && bundle exec rake spec')
end

desc 'Run repository specs'
task :repository do
SPEC_RESULTS[:repository] = system('cd repository && bundle exec rake spec')
spec_results[:repository] = system('cd repository && bundle exec rake spec')
end

desc 'Run changeset specs'
task :changeset do
SPEC_RESULTS[:changeset] = system('cd changeset && bundle exec rake spec')
spec_results[:changeset] = system('cd changeset && bundle exec rake spec')
end
end

Expand Down

0 comments on commit 25d6531

Please sign in to comment.