Expand variables in job names

It would be useful to have variables in job names expanded. This would allow to automatically label jobs with some useful info depending on the job setup:

- &test
  name: Unit tests (PHP ${TRAVIS_PHP_VERSION})
  php: 7.2
  script: phpunit
- <<*test
  php: 7.3

This should result in two jobs labelled Unit tests (PHP 7.2) and Unit tests (PHP 7.3).

This is very hard, if not impossible, to accomplish. The reason is that the jobs must be configured up front. $TRAVIS_PHP_VERSION is defined for the build script at the run time, so it is not available for job configuration.

Yeah, makes sense. So I guess there’s nothing which can be done about this. But thanks for having a look.