forked from ridgepole/ridgepole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (41 loc) · 1.05 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
dist: trusty
sudo: required
group: edge
language: ruby
cache:
- bundler
- apt
rvm:
- 2.2.7
- 2.3.4
- 2.4.1
before_install:
- gem install bundler
before_script:
- sudo service mysql stop
- sudo service postgresql stop
- docker-compose up -d
- function mysql_ping { mysqladmin -u root -h 127.0.0.1 -ppassword ping > /dev/null 2> /dev/null; }
- function mysql57_ping { mysqladmin -u root -h 127.0.0.1 -P 3307 -ppassword ping > /dev/null 2> /dev/null; }
- function pg_ping { PGPASSWORD=password pg_isready -U postgres -h 127.0.0.1 > /dev/null 2> /dev/null; }
- for i in {1..60}; do mysql_ping && break; sleep 1; done
- for i in {1..60}; do mysql57_ping && break; sleep 1; done
- for i in {1..60}; do pg_ping && break; sleep 1; done
script:
- bundle exec rake
gemfile:
- gemfiles/activerecord_5.0.gemfile
- gemfiles/activerecord_5.1.gemfile
env:
matrix:
- MYSQL56=1
- MYSQL57=1
- POSTGRESQL=1
services:
- docker
addons:
apt:
packages:
- mysql-client-core-5.6
- mysql-client-5.6
- postgresql-client-9.4