forked from brianmario/mysql2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (56 loc) · 1.11 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: ruby
bundler_args: --without benchmarks
script:
- bundle exec rake spec
before_install:
- gem --version
- |
bash -c " # Install MySQL 5.7 if DB=mysql57
if [[ x$DB =~ mysql57 ]]; then
sudo bash .travis_mysql57.sh
fi
"
- |
bash -c " # Install MariaDB if DB=mariadb
if [[ x$DB =~ xmariadb ]]; then
sudo bash .travis_mariadb.sh '$DB'
fi
"
- |
bash -c " # Install MySQL is OS=darwin
if [[ x$OSTYPE =~ ^xdarwin ]]; then
brew install mysql
mysql.server start
fi
"
- |
bash -c " # Configure SSL support
sudo bash .travis_ssl.sh
"
- mysqld --version
- mysql -u root -e "CREATE DATABASE IF NOT EXISTS test"
- mysql -u root -e "CREATE USER '$USER'@'localhost'" || true
os:
- linux
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.4
- ree
matrix:
allow_failures:
- env: DB=mysql57
- rvm: rbx-2
include:
- rvm: 2.0.0
env: DB=mariadb55
- rvm: 2.0.0
env: DB=mariadb10
- rvm: 2.0.0
env: DB=mysql57
- rvm: rbx-2
env: RBXOPT=-Xgc.honor_start=true
- rvm: 2.0.0
os: osx