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 1
1
sudo : required
2
+ dist : trusty
2
3
language : ruby
3
4
bundler_args : --without benchmarks development
4
5
# Temporary workaround for broken Rubygems on Travis
@@ -9,38 +10,64 @@ before_install:
9
10
addons :
10
11
hosts :
11
12
- mysql2gem.example.com
13
+ apt :
14
+ packages :
15
+ - mysql-server-5.5
16
+ - mysql-client-core-5.5
17
+ - mysql-client-5.5
12
18
rvm :
13
19
- 2.3.0
14
20
- 2.2
15
21
- 2.1
16
22
- 2.0.0
17
23
- 1.9.3
18
- - 1.8.7
19
- - ree
20
- - rbx-2
21
24
- ruby-head
22
25
matrix :
23
26
include :
27
+ - rvm : 1.8.7
28
+ dist : precise
29
+ - rvm : ree
30
+ dist : precise
31
+ - rvm : rbx-2
32
+ dist : precise
24
33
- rvm : 2.0.0
25
34
env : DB=mariadb55
26
35
addons :
27
- mariadb : 5.5
28
- hosts :
29
- - mysql2gem.example.com
36
+ mariadb : 5.5
37
+ hosts :
38
+ - mysql2gem.example.com
30
39
- rvm : 2.0.0
31
40
env : DB=mariadb10.0
32
41
addons :
33
- mariadb : 10.0
34
- hosts :
35
- - mysql2gem.example.com
42
+ mariadb : 10.0
43
+ hosts :
44
+ - mysql2gem.example.com
36
45
- rvm : 2.0.0
37
46
env : DB=mariadb10.1
38
47
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
42
61
- rvm : 2.0.0
43
62
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
44
71
- rvm : 2.0.0
45
72
env : DB=mysql55
46
73
os : osx
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ service mysql stop
6
6
apt-get purge ' ^mysql*' ' libmysql*'
7
7
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x8C718D3B5072E1F5
8
8
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'
10
10
11
11
apt-get update
12
12
apt-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
20
20
sudo service mysql restart
21
21
fi
22
22
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
24
25
25
26
# Print the MySQL version and create the test DB
26
27
if [[ x$OSTYPE =~ ^xdarwin ]]; then
You can’t perform that action at this time.
0 commit comments