Closed dionysius closed 6 years ago
Hi @dionysius, did you already read https://docs.travis-ci.com/user/database-setup/#MariaDB ? It's just a matter of:
addons:
mariadb: '10.0'
and playing w/ DB=mariadb
in your matrix (env
/include
/exclude
).
HTH, Matteo
Hi @scara Thank you for your answer. Yes I've read the database-setup docs for mariadb. Since they share the same port, I hardly assume the use of mariadb will remove mysql, so I would need to find a way to add mariadb only in specific conditions. Where did you find the information in the docs, that you can add addons inside include/exclude matrix? This was the missing piece for my understanding. Before posting initially I only had this issue https://github.com/travis-ci/travis-ci/issues/4555, but never found an official documentation about this. I'm just about now trying this out ;)
That's interesting: https://github.com/moodlerooms/moodle-plugin-ci/blob/210a0ea9077d68e26a1ee13cefde8ccc2a99701e/src/Command/InstallCommand.php#L83
So the first work is to extend MySQLDatabase
in https://github.com/moodlerooms/moodle-plugin-ci/tree/35adc672187f680eb4ac2c52370e3a01e33a0b0e/src/Installer/Database before going further w/ your tests on travis-ci.
TNX for giving it a try! 👍
Hi, coming from a problem specific with mariadb (https://github.com/frankkoch/moodle-mod_studentquiz/issues/26)
This might be a question to travis itself, but maybe someone here already knows the answer...
Has anyone managed to setup a travis matrix, where I can test in mysql and mariadb? These two doesn't seem to be coinstallable...