Matrix of platforms and environments

sodabrew's Avatar

sodabrew

01 Oct, 2014 04:15 AM

I am testing a compiled RubyGem, and I'd like to set up a matrix of x86 and x64 CPUs with 32-bit and 64-bit Ruby builds. The matrix should be:

platform x86 environment ruby_version=200
platform x64 environment ruby_version=200
platform x64 environment ruby_version=200-x64

Can I do this as simply as
matrix:
  - platform: x64
    environment: ruby_version=200
... ?

  1. 1 Posted by sodabrew on 01 Oct, 2014 04:21 AM

    sodabrew's Avatar

    Followup question: where is Ruby DevKit installed? I tried both C:\Ruby%ruby_version%\devkitvars.bat and bin\devkitvars.bat no dice.

  2. Support Staff 2 Posted by Feodor Fitsner on 01 Oct, 2014 05:55 PM

    Feodor Fitsner's Avatar

    Yes, you can define a matrix for that, but you have to switch Ruby in PATH by yourself.

    DevKit is inside of appropriate Ruby installation dir, for example C:\Ruby21\DevKit, C:\Ruby193\DevKit, etc.

  3. 3 Posted by sodabrew on 01 Oct, 2014 11:44 PM

    sodabrew's Avatar

    After much trial-and-error, this appears to work:
    ``` yaml
    environment:
      matrix:
        - platform: x86
          ruby_version: "200"
        - platform: x64
          ruby_version: "200"
        - platform: x64
          ruby_version: "200-x64"
    ```

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:48 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

 

22 Aug, 2019 08:13 PM
21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 05:56 AM