Is there a machine-friendly way to get a list of the available dist and osx_image values?

Hi,
I’d like to automate the process of updating the dist and osx_image values of my builds.
Is there any place where I can fetch the available entries, possibly sorted by novelty?
That is, besides scraping the Travis documentation pages, which is rather fragile.

Thanks

https://github.com/travis-ci/docs-travis-ci-com/blob/master/_data/xcodes.yml is the contents of the OSX images table in The macOS Build Environment - Travis CI.

For dist:, as per @BanzaiMan:

Which of those sources would you say is the more reliable?

Namely, the one that:

  1. Is more likely to be up to date
  2. Is less likely to get moved or changed in such a way that a trivial parser (e.g. a regex) will break

This JSON schema is used by the config validator, and should be most authoritative.

1 Like

The schema doesn’t have a list of osx_image: values.