-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (63 loc) · 1.29 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
57
58
59
60
61
62
63
language: ruby
bundler_args: --without benchmarks
script:
- bundle exec rake spec
# Temporary workaround for broken Rubygems on Travis
before_install:
- gem update --system 2.4.8
- 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
if [[ ! x$OSTYPE =~ ^xdarwin ]]; then
sudo bash .travis_ssl.sh
sudo service mysql restart
fi
"
- 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.3
- 2.0.0
- 2.1
- 2.2
- 2.3.1
- ree
matrix:
allow_failures:
- env: DB=mysql57
- rvm: rbx-2
- os: osx
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