Matrix and normal jobs combined

As you can see in the screenshots, I have three build stages that are required before running the tests and linting. Is it possible to use a matrix for the builds and then run the tests then the linting ?

Here’s the travis-ci for the project:

Build matrtix only adds jobs to the default stage. You can customize that stage’s name by specifying stage: at top level.


So using just the matrix will only work for you if the jobs in question can run in parallel.

If you want multiple similar jobs in different stages, you can save on duplication by

  • defining the shared parts at global level
  • using YAML anchors