Where can I find the list of 'os' and 'dist' options for Matrix Build Travis-CI / Multi OS Build

In the Travis-CI documentation, you can run tests on different operating systems and distributions among them.

A recording time, Google search does not display a list of all possible options os and dist. All you need to do is the following example , which provides the following under the build heading:

Many options are available and using the matrix.include key must include any specific entries. For example, this matrix will route assemblies to Trusty beta and an OS X image using Xcode 7.2:

matrix: include: - os: linux dist: trusty sudo: required - os: osx osx_image: xcode7.2

However, there is no indication as to which options are available for the os , dist or osx_image . Does anyone know where to find these values?

+6
source share
1 answer

If you look at the “Build Environment” , the “Virtualization Environments” section contains a table listing the various operating systems that Travis CI currently supports. Currently (2016-08-15), which includes:

  • Ubuntu 12.04 LTS Server Edition 64 bit (without sudo )
  • Ubuntu 12.04 LTS Server Edition 64 bit (with sudo )
  • OS X Mavericks
  • Ubuntu 14.04 LTS Server Edition 64 bit (with sudo )

As also indicated, the Ubuntu 12.04 LTS Server image is the default, so you can only switch to one other Linux distribution, namely trusty . Given that the dist property has only one possible value, I assume that the need to "list all possible values" is limited.

However, for OS X, this is not the end of the story. The OS X environmental documentation lets us know that the osx_image property can have a number of different values ​​that will change both the version of Xcode as well as the version of OS X:

  • OS X 10.11
    • osx_image: xcode8 (Xcode 8 beta 4)
    • osx_image: xcode7.3 (Xcode 7.3.1)
    • osx_image: xcode7.2 (Xcode 7.2.1)
  • OS X 10.10
    • osx_image: xcode7.1 (Xcode 7.1.1 GM)
    • osx_image: xcode7 (Xcode 7)
    • osx_image: xcode6.4 (Xcode 6.4)
    • osx_image: beta-xcode6.3 (Xcode 6.3)
  • OS X 10.9
    • osx_image: beta-xcode6.2 (Xcode 6.2)
    • osx_image: beta-xcode6.1 ( Default , Xcode 6.1)

Interestingly, beta-xcode6.1 displayed as the default image for OS X, which has the old version of Xcode and OS X and also appears to be in beta (whatever that means). Therefore, it may be a good idea to explicitly configure one or more versions of osx_image in matrix if you are going to create for OS X.

Update . As of October 2017, OS X 10.11 with Xcode 7.3.1 is the default, and the latest version is OS X 10.12 with Xcode 9.

+2
source

All Articles