Skip to content

Appraisal as default rake task doesn't run additional tasks #144

@jeremywadsack

Description

@jeremywadsack

When I use the following in my Rakefile it runs all the tasks listed:

if !ENV["APPRAISAL_INITIALIZED"]
  task default: %i[rubocop bundle:audit appraisal]
else
  task default: %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"]
  task default: %i[appraisal rubocop bundle:audit]
else
  task default: %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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions