Build matrix capability.

ebenezer.ikonne's Avatar

ebenezer.ikonne

16 May, 2014 04:59 PM

Hi -

I am confused about the usage of the build matrix feature that is present in the Environments pane of a build project and Configuration option in the Build pane of a Build project. I've read the document and really don't know how to they interplay.

Can you provide some additional guidance on how those sections are supposed to be used?

Thanks!

  1. 1 Posted by ebenezer.ikonne on 16 May, 2014 05:17 PM

    ebenezer.ikonne's Avatar

    Probably should clarify and say that I'm really not clear on the "Add Build Matrix Group" for environment variables.

    Thanks.

  2. Support Staff 2 Posted by Feodor Fitsner on 16 May, 2014 11:56 PM

    Feodor Fitsner's Avatar

    This means you can add not a single environment variable to build matrix's dimension, but few. For example consider the following example:

    configuration:
      - debug
      - release
    
    environment:
      matrix:
        - db: mysql
          provider: ADO
        - db: mssql
          provider: EF
    

    The following matrix will be created:

    • configuration=debug;db=mysql;provider=ADO
    • configuration=debug;db=mssql;provider=EF
    • configuration=release;db=mysql;provider=ADO
    • configuration=release;db=mssql;provider=EF

    Variables in the same group are treated as a one piece.

  3. 3 Posted by ebenezer.ikonne on 18 May, 2014 01:13 AM

    ebenezer.ikonne's Avatar

    That makes sense.

    However, are the variables "db" and "provider" standard? Is there a list
    of those?

    Thanks.

  4. Support Staff 4 Posted by Feodor Fitsner on 18 May, 2014 02:14 AM

    Feodor Fitsner's Avatar

    Oh, you can use any variables - those "db" and "provider" are just examples.

  5. Support Staff 5 Posted by Feodor Fitsner on 18 May, 2014 02:16 AM

    Feodor Fitsner's Avatar

    Like here for example its node.js version to test against: https://github.com/gruntjs/grunt/blob/master/appveyor.yml

  6. 6 Posted by ebenezer.ikonne on 18 May, 2014 10:50 AM

    ebenezer.ikonne's Avatar

    Ok. But ultimately, its just variable declarations to be (possibly) used
    later on in the build, right?

  7. Support Staff 7 Posted by Feodor Fitsner on 18 May, 2014 02:15 PM

    Feodor Fitsner's Avatar

    Correct.

    On Sunday, May 18, 2014, ebenezer.ikonne <
    [email blocked]> wrote:

  8. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:43 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac