You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the following in my Rakefile it runs all the tasks listed:
if !ENV["APPRAISAL_INITIALIZED"]taskdefault: %i[rubocopbundle:auditappraisal]elsetaskdefault: %i[spec]end
When I change the order of default dependencies to run appraisal first it runs the suites through Appraisal (successfully) and then exits without running bundle:audit or rubocop tasks.
if !ENV["APPRAISAL_INITIALIZED"]taskdefault: %i[appraisalrubocopbundle:audit]elsetaskdefault: %i[spec]end
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.
The text was updated successfully, but these errors were encountered:
Got the same problem.
Fixed it by calling rake tasks in a spawn process :
task:defaultdoifENV["APPRAISAL_INITIALIZED"]Rake::Task["spec"].invokeelse# 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/480failunlesssystem"bundle exec appraisal rspec"failunlesssystem"bundle exec rubocop"failunlesssystem"bundle exec rake standard"endend
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.The text was updated successfully, but these errors were encountered: