Requesting Xenial, getting Trusty instead

Example build config: (have also tried without os: specified, just dist:)

Additional info: If I remove the matrix (that I’m using to have separate settings for linux and mac), then it works fine. ie, if I take those same settings and use them for a linux-only config, then it gives me xenial as requested.

Hey @dewf, sorry for the confusion here.

I think this is happening because you are specifying a language that’s unknown to Travis CI i.e. language: c++. Could you try with language: cpp instead? See

Take note that we’ve filed an internal issue to respect the dist: value when an unknown language is specified.

Hope this helps!

That did the trick. Thank you so much!

Glad to hear it!

Closing this topic for now but please don’t hesitate to open new one if there’s anything else we can help you with.

Happy building!