# Matrix of matrix

**URL:** <https://travis-ci.community/t/matrix-of-matrix/11028>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [January 13, 2021, 1:30pm UTC](https://travis-ci.community/t/matrix-of-matrix/11028 "2021-01-13T13:30:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![catmando](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/catmando/32/5467_2.png) [@catmando](https://travis-ci.community/u/catmando)\
**Post date:** [January 13, 2021, 1:30pm UTC](https://travis-ci.community/t/matrix-of-matrix/11028/1 "2021-01-13T13:30:46Z")

</div>

I have a build process that builds a bunch of interrelated gems… a piece of the build file looks like this:

```
jobs:
  include:
    - <<: *_test_gem
      env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1
    - <<: *_test_gem
      env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1
    - <<: *_test_gem
      env: COMPONENT=hyper-state RUBY_VERSION=2.5.1
    - <<: *_test_gem
      env: COMPONENT=hyper-component RUBY_VERSION=2.5.1
   plus many more lines like this...

```

Now we are trying to test all these components against three different configurations like this

```
env:
  - OPAL_VERSION='~>0.11'
  - RAILS_VERSION='~>5.0'
  - NEWEST_VERSION=true

```

In otherwords I want to do each of the test runs listed above 3 times using each of the different environment variables.

Of course I can just copy the first set of commands three times and and add the different environment vars, but that seems pretty aweful…

Thanks in advance.
