Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-605

Allow instructions to have conditions on environment variable values

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • 1.4
    • master
    • None
    • 4db3468c92ea0bc335314e6ea14b0cb927257d4c

    Description

      Coin has support for conditions on properties like

          enable_if:
            condition: property
            property: host.os
            equals_value: Windows
      

      It would be useful to allow conditions on environment variables

          enable_if:
            condition: env_var
            env_var: "TARGET_CONFIGURE_ARGS"
            contains_value: "Foo"
      
          enable_if:
            condition: env_var
            env_var: "TARGET_CONFIGURE_ARGS"
            equals_value: "bar"
      

      Might also be useful to add regex matching

          enable_if:
            condition: env_var
            env_var: "TARGET_CONFIGURE_ARGS"
            value_matches: "^baz(.+)_bib" # use whatever is the python re syntax
      

      This would allow to make certain decisions which are not based on the configure arguments passed in qt5.git, but also on certain env vars that might be set in repo specific coin/module_config.yaml files, effectively allowing repo-specific instructions rather than platform specific ones.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tosaario Toni Saario
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes