forked from skylightio/skylight-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
178 lines (164 loc) · 4.76 KB
/
.travis.yml
File metadata and controls
178 lines (164 loc) · 4.76 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
language: ruby
cache: bundler
sudo: false
before_install:
- gem install bundler
after_script: 'if [[ -n "$CODECLIMATE_REPO_TOKEN" ]]; then bundle exec codeclimate-test-reporter; fi'
env:
global:
- SKYLIGHT_ENABLE_TRACE_LOGS=true
- SKYLIGHT_REQUIRED=true
- SKYLIGHT_TEST_DIR=/tmp
- RAILS_ENV=development
- EMBEDDED_HTTP_SERVER_TIMEOUT=30
- WORKER_SPAWN_TIMEOUT=15
matrix:
# The first one is intentionally empty in order to run without any extra env vars
-
- SKYLIGHT_DISABLE_AGENT=true
rvm:
- 1.9.3
- 2.0.0
- 2.1.10
- 2.3.1
gemfile:
- gemfiles/Gemfile.rails-3.0.x
- gemfiles/Gemfile.rails-3.2.x
- gemfiles/Gemfile.rails-4.0.x
- gemfiles/Gemfile.rails-4.1.x
- gemfiles/Gemfile.rails-4.2.x
- gemfiles/Gemfile.rails-5.x
- gemfiles/Gemfile.sinatra-1.3.x
- gemfiles/Gemfile.sinatra-1.4.x
- gemfiles/Gemfile.grape
# Declared manually in the matrix
# - gemfiles/Gemfile.sinatra-edge
# - gemfiles/Gemfile.rails-edge
matrix:
exclude:
# Rails 4.0+ requires Ruby 2.0+
- rvm: 1.9.3
gemfile: gemfiles/Gemfile.rails-4.0.x
- rvm: 1.9.3
gemfile: gemfiles/Gemfile.rails-4.1.x
- rvm: 1.9.3
gemfile: gemfiles/Gemfile.rails-4.2.x
# Rails 5+ requires Ruby 2.2.2+
- rvm: 1.9.3
gemfile: gemfiles/Gemfile.rails-5.x
- rvm: 2.0.0
gemfile: gemfiles/Gemfile.rails-5.x
- rvm: 2.1.10
gemfile: gemfiles/Gemfile.rails-5.x
# Seems unlikely anyone will be running these combos
# If we want to support, we need to fix failing tests
- rvm: 2.3.1
gemfile: gemfiles/Gemfile.rails-3.0.x
- rvm: 2.3.1
gemfile: gemfiles/Gemfile.rails-3.2.x
# We don't need to test so many disabled combinations
- rvm: 1.9.3
env: SKYLIGHT_DISABLE_AGENT=true
- rvm: 2.0.0
env: SKYLIGHT_DISABLE_AGENT=true
- rvm: 2.1.10
env: SKYLIGHT_DISABLE_AGENT=true
# Latest Grape does not work on Ruby < 2.1
- rvm: 1.9.3
gemfile: gemfiles/Gemfile.grape
- rvm: 2.0.0
gemfile: gemfiles/Gemfile.grape
include:
# Separate Code Climate coverage run, sort of duplicate of normal Rails 5 job
- rvm: 2.3.1
gemfile: gemfiles/Gemfile.rails-5.x
env:
- secure: "dGdkneTJSwPJ8QXfUhhG6fSxGpZPgX5pidYm3cA6o4VsErAF3m5r5cyTO54Swzb9m0Ib2mLfqJtcd0n+0IJFTRxGQe98H0QDpBE8UAf0H8AjXwHmjYpVzSxm/iPZDIuDTkDsfFLxaQ1NbOiSm2joUoU70icNyIAArvN3bh/fMpM="
# Mongoid requires ActiveModel ~> 4.0
- rvm: 2.3.1
gemfile: gemfiles/Gemfile.rails-edge
- rvm: 2.3.1
env:
- SKYLIGHT_DISABLE_AGENT=true
gemfile: gemfiles/Gemfile.rails-edge
# Test old Tilt version (with Rails since Sinatra doesn't like old Tilt)
- rvm: 2.3.1
env:
- TILT_VERSION=1.1
gemfile: gemfiles/Gemfile.rails-4.1.x
# Test old Sequel version
- rvm: 2.3.1
env:
- SEQUEL_VERSION=3.12.0
gemfile: gemfiles/Gemfile.sinatra-1.4.x
- rvm: 2.3.1
env:
- SEQUEL_VERSION=4.34.0 # Some changes were made in 4.35.0
gemfile: gemfiles/Gemfile.sinatra-1.4.x
# Mongo Integration
- rvm: 2.3.1
env:
- TEST_MONGO_INTEGRATION=true
gemfile: gemfiles/Gemfile.rails-4.2.x
services: mongodb
- rvm: 2.3.1
env:
- TEST_MONGO_INTEGRATION=true
- MONGOID_VERSION="~> 4.0"
gemfile: gemfiles/Gemfile.rails-4.2.x
services: mongodb
# Elasticsearch Integration
- rvm: 2.3.1
env:
- TEST_ELASTICSEARCH_INTEGRATION=true
gemfile: gemfiles/Gemfile.rails-4.2.x
services: elasticsearch
before_script:
- sleep 10
# Sinatra
- rvm: 2.3.1
gemfile: gemfiles/Gemfile.sinatra-edge
# Grape
- rvm: 1.9.3
env:
- GRAPE_VERSION=0.17.0
gemfile: gemfiles/Gemfile.grape
- rvm: 2.0.0
env:
- GRAPE_VERSION=0.17.0
gemfile: gemfiles/Gemfile.grape
- rvm: 2.3.1
env:
- GRAPE_VERSION=0.10.0
gemfile: gemfiles/Gemfile.grape
- rvm: 2.3.1
env:
- GRAPE_VERSION=edge
gemfile: gemfiles/Gemfile.grape
# AMS
# Default AMS is currently 0.10.0
- rvm: 2.3.1
env:
- AMS_VERSION="~> 0.8.3"
gemfile: gemfiles/Gemfile.rails-4.2.x
- rvm: 2.3.1
env:
- AMS_VERSION="~> 0.9.5"
gemfile: gemfiles/Gemfile.rails-4.2.x
- rvm: 2.3.1
env:
- AMS_VERSION=edge
gemfile: gemfiles/Gemfile.rails-4.2.x
allow_failures:
# Testing edge is nice, but it probably shouldn't kill the build
- gemfile: gemfiles/Gemfile.sinatra-edge
- gemfile: gemfiles/Gemfile.rails-edge
- env:
- GRAPE_VERSION=edge
- env:
- AMS_VERSION=edge
notifications:
webhooks:
urls: https://tilde.slack.com/services/hooks/travis?token=N5Dc2tov6aTfOjXK1VOXlxiS
on_success: change
on_failure: always