Skip to content

Commit

Permalink
Fix MySQLSuite execution on Travis (#331)
Browse files Browse the repository at this point in the history
* Fix MySQLSuite execution on Travis

* Fix Travis config for MySQL
  • Loading branch information
stanislas-m authored Dec 23, 2018
1 parent f47f502 commit f7726b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ global_env:
- mysql-5.7-trusty
packages:
- mysql-server
before_install:
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('root') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo mysql_upgrade -u root -proot
- sudo service mysql restart

.postgres: &postgres
addons:
Expand Down
2 changes: 1 addition & 1 deletion pop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestSpecificSuites(t *testing.T) {
switch os.Getenv("SODA_DIALECT") {
case "postgres":
suite.Run(t, &PostgreSQLSuite{})
case "mysql":
case "mysql", "mysql_travis":
suite.Run(t, &MySQLSuite{})
case "sqlite":
suite.Run(t, &SQLiteSuite{})
Expand Down

0 comments on commit f7726b4

Please sign in to comment.