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: https://github.com/Seluj78/PyMatcha/blob/dev/.travis.yml

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

Example: https://travis-ci.com/github/native-api/test_travis/builds/191514084

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