-
Notifications
You must be signed in to change notification settings - Fork 33
/
.travis.yml
30 lines (30 loc) · 917 Bytes
/
.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
sudo: false
rvm:
- 2.3.0
gemfile:
- test/gemfiles/Gemfile.rails-4.2.x
- test/gemfiles/Gemfile.rails-5.0.x
- test/gemfiles/Gemfile.rails-6.0.x
env:
- DB=mysql
- DB=postgres
addons:
postgresql: "9.4"
matrix:
exclude:
gemfile: test/gemfiles/Gemfile.rails-4.2.x
env: DB=mysql
before_install:
- gem install bundler
- if [[ $DB == mysql ]] ;
then
echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections ;
wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb ;
sudo dpkg --install mysql-apt-config_0.7.3-1_all.deb ;
sudo apt-get update -q ;
sudo apt-get install -q -y --allow-unauthenticated -o Dpkg::Options::=--force-confnew mysql-server ;
sudo mysql_upgrade ;
mysql -e 'create database json_translate_test;' ;
else
psql -c 'create database json_translate_test;' -U postgres ;
fi