forked from rpush/rpush
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (53 loc) · 1.46 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
58
59
60
61
62
63
64
language: ruby
dist: xenial
cache: bundler
compiler: clang
rvm:
- 2.3.8
- 2.4.6
- 2.5.5
- 2.6.3
# Build only commits on master for the "Build pushed branches" feature. This
# prevents building twice on PRs originating from our repo ("Build pushed pull
# requests)". See:
# - https://github.com/travis-ci/travis-ci/issues/1147
# - https://docs.travis-ci.com/user/pull-requests/#double-builds-on-pull-requests
branches:
only:
- master
gemfile:
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
- gemfiles/rails_5.2.gemfile
- gemfiles/rails_6.0.gemfile
services:
- postgresql
- redis-server
before_script: psql -c 'create database rpush_test;' -U postgres >/dev/null
before_install:
- gem install rubygems-update && update_rubygems
# Rails 4.2 doesn't support bundler 2.0, so we need to lock bundler to
# v1.17.3. This is just for Ruby 2.5 which ships with bundler 2.x on Travis
# CI while Ruby 2.6 does not.
- yes | rvm @global do gem uninstall bundler --all
- yes | rvm @global do gem install bundler -v 1.17.3 || true
env:
matrix:
- CLIENT=active_record
- CLIENT=redis
matrix:
fast_finish: true
allow_failures:
- gemfile: gemfiles/rails_4.2.gemfile
rvm: 2.5.5
exclude:
- gemfile: gemfiles/rails_6.0.gemfile
rvm: 2.3.8
- gemfile: gemfiles/rails_6.0.gemfile
rvm: 2.4.6
jobs:
include:
- stage: Lint
rvm: 2.6.3
script: bundle exec rake rubocop