Skip to content

Travis: Add mysql to the list of services [release/97]

Marek Szuba requested to merge travis_environment_rel97 into release/97

Created by: mkszuba

Description

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 https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment 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.

Benefits

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.

Testing

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

No, changes affect Travis only.

If so, do the tests pass/fail?

N/A

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