Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional tools #576

Merged
merged 5 commits into from
Aug 2, 2024
Merged

Conversation

jkloetzke
Copy link
Member

Add support for conditional tool usage...

To calculate the variant-id, the applicable tools for each step must be
known. The variant-id of a step is calculated already in its
constructor. So far this worked because the list of used tools was
static for each recipe. Now that we want to make tool usage conditional,
we have to pass the tool mask directly into each step.
Sometimes a recipe might only require a tool if certain conditions are
met. So far, tools could only be used unconditionally. This adds a new
syntax along the following lines:

  checkoutTools:
      - if: "${TEST_VAR:-}"
        name: graphics::package

Fixes BobBuildTool#572.
Copy link

codecov bot commented Aug 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.66%. Comparing base (f6e486b) to head (52f4452).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #576      +/-   ##
==========================================
- Coverage   88.67%   88.66%   -0.01%     
==========================================
  Files          46       46              
  Lines       14857    14837      -20     
==========================================
- Hits        13174    13155      -19     
+ Misses       1683     1682       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jkloetzke jkloetzke merged commit 39bd3ed into BobBuildTool:master Aug 2, 2024
10 of 11 checks passed
@jkloetzke jkloetzke deleted the conditional-tools branch August 2, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants