Skip to content

Instantly share code, notes, and snippets.

@gocanto
Last active September 29, 2018 08:06
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gocanto/46b8d39576f612f9c6b8b4ffb3efac98 to your computer and use it in GitHub Desktop.
Save gocanto/46b8d39576f612f9c6b8b4ffb3efac98 to your computer and use it in GitHub Desktop.
MySQL 5.7 Travis CI configuration
language: php
php:
- 7.0
- 7.1
services:
- mysql
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
dist: trusty
sudo: required
before_script:
- mysql -e 'create database antvel;'
@gocanto
Copy link
Author

gocanto commented Aug 1, 2017

MySQL 5.7 Travis CI configuration

After two days of researching online and trying too many examples, I got the solution down for this use case.

Example file

You can find a whole file example working with this configuration on https://github.com/ant-vel/Shop/blob/master/.travis.yml

License

The MIT License (MIT). Please see License File for more information.

How can I thank you?

Just don't forget to follow me on twitter!

Thanks!

Gustavo Ocanto.
gustavoocanto@gmail.com

@laurynas
Copy link

It was very helpful! Thanks!!

@rtrzebinski
Copy link

thank you!!!

@wata727
Copy link

wata727 commented Dec 4, 2017

Great! But currently mysql-5.7-trusty has some problems... :( FYI travis-ci/travis-ci#7992

@gocanto
Copy link
Author

gocanto commented Feb 1, 2018

Good. I am glad it was helpful :)

@hieunguyentrung
Copy link

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment