File tree Expand file tree Collapse file tree 3 files changed +42
-14
lines changed Expand file tree Collapse file tree 3 files changed +42
-14
lines changed Original file line number Diff line number Diff line change 11sudo : required
2+ dist : trusty
23language : ruby
34bundler_args : --without benchmarks development
45# Temporary workaround for broken Rubygems on Travis
@@ -9,38 +10,64 @@ before_install:
910addons :
1011 hosts :
1112 - mysql2gem.example.com
13+ apt :
14+ packages :
15+ - mysql-server-5.5
16+ - mysql-client-core-5.5
17+ - mysql-client-5.5
1218rvm :
1319 - 2.3.0
1420 - 2.2
1521 - 2.1
1622 - 2.0.0
1723 - 1.9.3
18- - 1.8.7
19- - ree
20- - rbx-2
2124 - ruby-head
2225matrix :
2326 include :
27+ - rvm : 1.8.7
28+ dist : precise
29+ - rvm : ree
30+ dist : precise
31+ - rvm : rbx-2
32+ dist : precise
2433 - rvm : 2.0.0
2534 env : DB=mariadb55
2635 addons :
27- mariadb : 5.5
28- hosts :
29- - mysql2gem.example.com
36+ mariadb : 5.5
37+ hosts :
38+ - mysql2gem.example.com
3039 - rvm : 2.0.0
3140 env : DB=mariadb10.0
3241 addons :
33- mariadb : 10.0
34- hosts :
35- - mysql2gem.example.com
42+ mariadb : 10.0
43+ hosts :
44+ - mysql2gem.example.com
3645 - rvm : 2.0.0
3746 env : DB=mariadb10.1
3847 addons :
39- mariadb : 10.1
40- hosts :
41- - mysql2gem.example.com
48+ mariadb : 10.1
49+ hosts :
50+ - mysql2gem.example.com
51+ - rvm : 2.0.0
52+ env : DB=mysql56
53+ addons :
54+ hosts :
55+ - mysql2gem.example.com
56+ apt :
57+ packages :
58+ - mysql-server-5.6
59+ - mysql-client-core-5.6
60+ - mysql-client-5.6
4261 - rvm : 2.0.0
4362 env : DB=mysql57
63+ addons :
64+ hosts :
65+ - mysql2gem.example.com
66+ apt :
67+ packages :
68+ - mysql-server-5.7
69+ - mysql-client-core-5.7
70+ - mysql-client-5.7
4471 - rvm : 2.0.0
4572 env : DB=mysql55
4673 os : osx
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ service mysql stop
66apt-get purge ' ^mysql*' ' libmysql*'
77apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x8C718D3B5072E1F5
88
9- add-apt-repository ' deb http://repo.mysql.com/apt/ubuntu/ precise mysql-5.7'
9+ add-apt-repository ' deb http://repo.mysql.com/apt/ubuntu/ trusty mysql-5.7'
1010
1111apt-get update
1212apt-get -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew -y install mysql-server libmysqlclient-dev
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ if ! [[ x$OSTYPE =~ ^xdarwin ]]; then
2020 sudo service mysql restart
2121fi
2222
23- sudo mysql -e " CREATE USER '$USER '@'localhost'" || true
23+ sudo mysql -u root -e " CREATE USER '$USER '@'localhost'" || true
24+ sudo mysql -u root -e " GRANT ALL ON test.* TO '$USER '@'localhost'" || true
2425
2526# Print the MySQL version and create the test DB
2627if [[ x$OSTYPE =~ ^xdarwin ]]; then
You can’t perform that action at this time.
0 commit comments