Skip to content

Commit ef4d758

Browse files
committed
Add Ruby 2.0 + MariaDB 5.5 / 10.0 to the Travis matrix
1 parent 607f2f1 commit ef4d758

File tree

1 file changed

+31
-9
lines changed

1 file changed

+31
-9
lines changed

.travis.yml

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,42 @@
11
language: ruby
2-
rvm:
3-
- 1.8.7
4-
- 1.9.2
5-
- 1.9.3
6-
- 2.0.0
7-
- 2.1.1
8-
- ree
9-
- rbx
10-
env: RBXOPT=-Xgc.honor_start=true
112
bundler_args: --without benchmarks
123
script:
134
- bundle exec rake spec
145
# Temporary workaround for broken Rubygems on Travis
156
before_install:
167
- gem update --system 2.1.11
178
- gem --version
9+
- |
10+
bash -c " # Install MariaDB if DB=mariadb
11+
if [[ x$DB =~ xmariadb ]]; then
12+
sudo service mysql stop
13+
sudo apt-get purge '^mysql*' 'libmysql*'
14+
sudo apt-get install python-software-properties
15+
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
16+
if [[ x$DB = xmariadb55 ]]; then
17+
sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main'
18+
elif [[ x$DB = xmariadb10 ]]; then
19+
sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu precise main'
20+
fi
21+
sudo apt-get update
22+
sudo apt-get -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -y install mariadb-server libmariadbd-dev
23+
fi
24+
"
25+
- mysqld --version
26+
rvm:
27+
- 1.8.7
28+
- 1.9.2
29+
- 1.9.3
30+
- 2.0.0
31+
- 2.1.1
32+
- ree
1833
matrix:
1934
allow_failures:
2035
- rvm: rbx
36+
include:
37+
- rvm: 2.0.0
38+
env: DB=mariadb55
39+
- rvm: 2.0.0
40+
env: DB=mariadb10
41+
- rvm: rbx
42+
env: RBXOPT=-Xgc.honor_start=true

0 commit comments

Comments
 (0)