Skip to content

Commit 53249ab

Browse files
committed
Merge branch 'travis_mariadb'
2 parents b1c089c + ef4d758 commit 53249ab

File tree

2 files changed

+45
-16
lines changed

2 files changed

+45
-16
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

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,22 @@ As for field values themselves, I'm workin on it - but expect that soon.
445445

446446
## Compatibility
447447

448-
This gem is regularly tested against the following Ruby versions on Linux and Mac OS X:
448+
This gem is tested with the following Ruby versions on Linux and Mac OS X:
449449

450-
* Ruby MRI 1.8.7, 1.9.2, 1.9.3, 2.0.0 (ongoing patch releases).
451-
* Ruby Enterprise Edition (based on MRI 1.8.7).
452-
* Rubinius 2.0 in compatibility modes 1.8, 1.9, 2.0.
450+
* Ruby MRI 1.8.7, 1.9.2, 1.9.3, 2.0.0, 2.1.x (ongoing patch releases)
451+
* Ruby Enterprise Edition (based on MRI 1.8.7)
452+
* Rubinius 2.x
453453

454-
The mysql2 gem 0.2.x series includes an Active Record driver that works with AR
455-
2.3.x and 3.0.x. Starting in Active Record 3.1, a mysql2 driver is included in
456-
the Active Record codebase and no longer provided in mysql2 gem 0.3 and above.
454+
This gem is tested with the following MySQL and MariaDB versions:
455+
456+
* MySQL 5.0, 5.1, 5.5, 5.6
457+
* MySQL Connector/C 6.0 and 6.1 (primarily on Windows)
458+
* MariaDB 5.5, 10.0
459+
460+
This gem has two version families:
461+
462+
* mysql2 0.2.x includes an Active Record driver compatible with AR 2.3 and 3.0
463+
* mysql2 0.3.x does not include an AR driver because it is included in AR 3.1 and above
457464

458465
## Yeah... but why?
459466

0 commit comments

Comments
 (0)