-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (41 loc) · 1.02 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
---
sudo: false
language: ruby
install: bundle --without local_development --jobs=3 --retry=3
cache: bundler
rvm:
- 2.4
- 2.5
- 2.6
services:
- mysql
- postgresql
gemfile:
- gemfiles/am_5.0.gemfile
- gemfiles/am_5.1.gemfile
- gemfiles/am_5.2.gemfile
- gemfiles/am_6.0.gemfile
env:
global:
- CC_TEST_REPORTER_ID=73c88f60a4ed839ffb0da252514d11374fff29c811beebd0796311faffa7b6b5
- COVERAGE=1
- TRAVIS_TEST_RESULT=simplecov
matrix:
- DB=mysql
- DB=sqlite
- DB=postgres
matrix:
exclude:
- rvm: 2.4
gemfile: gemfiles/am_6.0.gemfile
before_script:
- 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 test;' -U postgres
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
before_install: gem install bundler -v 2.0.1
script:
- bundle exec rspec
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT