Test Build Matrix Expansion of Travis

Viewed 285
1 Answers

Travis at the time of writing does not have such feature.

But matrix logic is quite simple (main part in travis_api in travis/model/build/config/matrix.rb) - it:

  1. creates all combinations of top level parameters that are arrays (rvm/env/etc.)
  2. removes combinations that match any matrix/exclude pattern
  3. adds included combinations (have hot found duplicate handling, probably they are removed somewhere later)

If you really want to see what travis expands your config into - there's no other way that run it (third party tools cannot guarantee their results to be accurate event if they copy code from travis - it may change in the future). To make it faster - you can substitute your actual tests with a stub like script: 'true'

Related