forked from GeorgeKaraszi/ActiveRecordExtended
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (48 loc) · 1.24 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
dist: trusty
sudo: required
language: ruby
rvm:
- 2.4
- 2.5
- 2.6
- 2.7
- ruby-head
before_install: gem install bundler
branches:
only:
- master
gemfile:
- gemfiles/activerecord-51.gemfile
- gemfiles/activerecord-52.gemfile
- gemfiles/activerecord-60.gemfile
- gemfiles/activerecord-61.gemfile
matrix:
allow_failures:
- rvm: ruby-head
exclude:
- rvm: 2.4
gemfile: gemfiles/activerecord-60.gemfile
- rvm: 2.4
gemfile: gemfiles/activerecord-61.gemfile
env:
global:
- DATABASE_URL=postgres://postgres@localhost/active_record_extended_test
- PGPORT=5433
before_script:
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
- sudo service postgresql restart
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- psql -c 'create database active_record_extended_test;' -U postgres
- bundle exec rake db:migrate
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
cache:
- bundler
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10