Open jeremywadsack opened 6 years ago
Got the same problem. Fixed it by calling rake tasks in a spawn process :
task :default do
if ENV["APPRAISAL_INITIALIZED"]
Rake::Task["spec"].invoke
else
# Standard & appraisal requires each a spawn process.
# Additional tasks won't run after appraisal because of
# something to do with the exit code.
# https://github.com/thoughtbot/appraisal/issues/144
# Standard may be tainted by the rubocop task and
# report offenses from other plugins putted in .rubocop_todo.yml
# https://github.com/testdouble/standard/issues/480
fail unless system "bundle exec appraisal rspec"
fail unless system "bundle exec rubocop"
fail unless system "bundle exec rake standard"
end
end
When I use the following in my
Rakefile
it runs all the tasks listed:When I change the order of default dependencies to run
appraisal
first it runs the suites through Appraisal (successfully) and then exits without runningbundle:audit
orrubocop
tasks.I presume this has something to do with an exit code for the
appraisal
task but the actual value of$?
in the shell in both cases is 0, so I'm not sure where to look.