Travis matrix support

Hi there,

Is there any possibility to create a two-dimensional matrix using Travis config file? Let’s say I have two main parameters for my tests - lang and test suite name. I would like to avoid multiplying all the parameters in my config like the following:

env:

  • SUITE=test_suite1.py LANG=lang1
  • SUITE=test_suite2.py LANG=lang1
  • SUITE=test_suite3.py LANG=lang1
  • SUITE=test_suite1.py LANG=lang2
  • SUITE=test_suite2.py LANG=lang2
  • SUITE=test_suite3.py LANG=lang2
  • SUITE=test_suite1.py LANG=lang3
  • SUITE=test_suite2.py LANG=lang3
  • SUITE=test_suite3.py LANG=lang3

Is there any possibility to create a config which could handle such matrix? e.g.

  • SUITE=test_suite1.py

  • SUITE=test_suite2.py

  • SUITE=test_suite3.py

  • LANG=lang1.py

  • LANG=lang2.py

  • LANG=lang3.py

And then mix them any-to-any?

Regards,
kamil

This appears to be the same feature requested in Support multiple env: (environment variables -- based) axes via a list of lists

1 Like