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

Allow instructions to have conditions on environment variable values

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes