forked from activerecord-hackery/ransack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (43 loc) · 1.17 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
language: ruby
rvm:
- 2.6.4
services:
- mysql
env:
- RAILS=6-0-stable DB=sqlite3
- RAILS=6-0-stable DB=mysql
- RAILS=6-0-stable DB=postgres
- RAILS=v6.0.0 DB=sqlite3
- RAILS=v6.0.0 DB=mysql
- RAILS=v6.0.0 DB=postgres
- RAILS=5-2-stable DB=sqlite3
- RAILS=5-2-stable DB=mysql
- RAILS=5-2-stable DB=postgres
- RAILS=v5.2.1 DB=sqlite3
- RAILS=v5.2.1 DB=mysql
- RAILS=v5.2.1 DB=postgres
- RAILS=v5.2.0 DB=sqlite3
- RAILS=v5.2.0 DB=mysql
- RAILS=v5.2.0 DB=postgres
- RAILS=5-1-stable DB=sqlite3
- RAILS=5-1-stable DB=mysql
- RAILS=5-1-stable DB=postgres
matrix:
allow_failures:
- env: RAILS=5-2-stable DB=sqlite3
- env: RAILS=5-2-stable DB=mysql
- env: RAILS=5-2-stable DB=postgres
before_script:
- if [ "$DB" = "mysql" ];
then
mysql -e 'create database ransack collate utf8_general_ci;';
mysql -e 'use ransack;show variables like "%character%";show variables like "%collation%";';
fi
- if [ "$DB" = "postgres" ];
then
psql -c 'create database ransack;' -U postgres;
fi
addons:
code_climate:
repo_token: 8b701c4364d51a0217105e08c06922d600cec3d9e60d546a89e3ddfe46e0664e
postgresql: "9.6"