Skip to content

Travis: Add mysql to the list of services [master]

Marek Szuba requested to merge travis_environment_master into master

Created by: mkszuba


Travis is now in the process of changing the default Linux distribution it uses for builds from Ubuntu Trusty to Ubuntu Xenial. One of the differences between Travis Trusty and Xenial images is that the latter no longer implicitly start services such as the MySQL daemon. Update our travis configuration to explicitly start the MySQL service. See for details.

Use case

The vast majority of Infrastructure repositories both use MySQL and do not specify the distribution to use, meaning we might end up with our builds suddently going Xenial and being unable to connect to MySQL.


Travis builds will hopefully continue to work once the default distro for our repositories has been changed from Trusty to Xenial.

Possible Drawbacks

None I can think of.


Have you added/modified unit tests to test the changes?

No, changes affect Travis only.

If so, do the tests pass/fail?


Have you run the entire test suite and no regression was detected?

No, changes affect Travis only. Travis builds for the merge branch continue to succeed.

Merge request reports