pub fn run_steps(
    steps: &Vec<String>,
    build_steps: &BuildSteps,
    vars: &TemplateVariables
) -> bool
Expand description

Ensure that all build steps have been run successfully

  1. First all build steps that are required
  2. Then all of the found build steps are executed in sequence with the command outputs being printed to the standard output and standard error, as if the commands where executed manually.
  3. Only if all the build steps executed with exist status 0, true is returned, otherwise false.

Arguments

  • steps - The list of build steps by name that should be executed
  • build_steps - The list of build steps to consider.
  • vars - Variables for the template engine and for the execution environment variables

Returns

  • true if all existing build steps for cmd executed successfully
  • false otherwise