require 'rspec/core/rake_task' require 'engine_cart/rake_task' require 'rubocop/rake_task' desc 'Run style checker' RuboCop::RakeTask.new(:rubocop) do |task| task.fail_on_error = true end RSpec::Core::RakeTask.new(:spec) desc 'Generate the engine_cart and spin up test servers and run specs' task ci: ['rubocop', 'engine_cart:generate'] do puts 'running continuous integration' Rake::Task['spec_with_app_load'].invoke end