Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builds on MySQL are broken on Xenial #92

Closed
abias opened this issue Jun 6, 2019 · 6 comments
Closed

Builds on MySQL are broken on Xenial #92

abias opened this issue Jun 6, 2019 · 6 comments

Comments

@abias
Copy link

abias commented Jun 6, 2019

Travis has changed their default OS version from Trusty to Xenial which does not start mysql anymore by default - see https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment

According to https://docs.travis-ci.com/user/database-setup/#mysql, you have now to add

services:
  - mysql

to your .travis.yml.

As an alternative, you could also

dist: trusty

but this seems not to make much sense to me as Trusty has reached its end of life.

@polothy polothy pinned this issue Jun 6, 2019
dionysius added a commit to studentquiz/moodle-mod_studentquiz that referenced this issue Jun 17, 2019
@luukverhoeven
Copy link

The same issue occurs with postgres
https://travis-ci.org/MFreakNL/moodle-block-user_favorites/jobs/550213985

services:
- postgresql

Starting service postgresql doesn't solves this issue. Any clues?

@abias
Copy link
Author

abias commented Jun 25, 2019

Interesting. We do not have problems with postgres builds.
But we have postgres configured to use 9.4, not 9.3 as you have on https://github.com/MFreakNL/moodle-block-user_favorites/blob/MOODLE_35_STABLE/.travis.yml#L9. This aligns with .travis.dist.yml on https://github.com/blackboard-open-source/moodle-plugin-ci/blob/master/.travis.dist.yml#L7.

You might want to try to raise the postgres version, perhaps this solves your problem

@luukverhoeven
Copy link

Interesting. We do not have problems with postgres builds.
But we have postgres configured to use 9.4, not 9.3 as you have on https://github.com/MFreakNL/moodle-block-user_favorites/blob/MOODLE_35_STABLE/.travis.yml#L9. This aligns with .travis.dist.yml on https://github.com/blackboard-open-source/moodle-plugin-ci/blob/master/.travis.dist.yml#L7.

You might want to try to raise the postgres version, perhaps this solves your problem

Thanks, that solves the postgresql issue!

@mudrd8mz
Copy link

mudrd8mz commented Jul 8, 2019

Many thanks @abias for this suggestion which I found working well in my own plugin. +1'ed

andstor added a commit to KQMATH/moodle-mod_capquiz that referenced this issue Jul 25, 2019
gjb2048 added a commit to gjbarnard/moodle-format_topcoll that referenced this issue Jul 29, 2019
gjb2048 added a commit to gjbarnard/moodle-format_topcoll that referenced this issue Jul 30, 2019
gjb2048 added a commit to gjbarnard/moodle-format_topcoll that referenced this issue Jul 30, 2019
jacac added a commit to jacac/moodle-mod_questionnaire that referenced this issue Jul 30, 2019
martignoni added a commit to moodlebox/moodle-tool_moodlebox that referenced this issue Aug 13, 2019
@abias
Copy link
Author

abias commented Sep 27, 2019

@polothy , may I ask if there is any chance that this change gets integrated into .travis.dist.yml and announced in the Changelog anytime soon? Would it help if I prepare a pull request for you?

polothy added a commit that referenced this issue Sep 27, 2019
@polothy
Copy link
Contributor

polothy commented Sep 27, 2019

Updated docs and .travis.dist.yml - did not tag because build is still failing due to Chrome/Behat and Mustache appears to be broken too :(

Don't have time right now to sort out those two.

@polothy polothy closed this as completed Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants