Skip to content

Commit 7bbafa0

Browse files
committed
Merge pull request #734 from sodabrew/travis_trusty
Use the Travis Trusty image
2 parents f8187be + f6ff681 commit 7bbafa0

File tree

3 files changed

+42
-14
lines changed

3 files changed

+42
-14
lines changed

.travis.yml

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
sudo: required
2+
dist: trusty
23
language: ruby
34
bundler_args: --without benchmarks development
45
# Temporary workaround for broken Rubygems on Travis
@@ -9,38 +10,64 @@ before_install:
910
addons:
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
1218
rvm:
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
2225
matrix:
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

.travis_mysql57.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ service mysql stop
66
apt-get purge '^mysql*' 'libmysql*'
77
apt-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

1111
apt-get update
1212
apt-get -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew -y install mysql-server libmysqlclient-dev

.travis_setup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ if ! [[ x$OSTYPE =~ ^xdarwin ]]; then
2020
sudo service mysql restart
2121
fi
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
2627
if [[ x$OSTYPE =~ ^xdarwin ]]; then

0 commit comments

Comments
 (0)