forked from jeremyevans/sequel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.gemfile
65 lines (54 loc) · 1.25 KB
/
.travis.gemfile
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
# This file is only used for TravisCI integration.
source 'http://rubygems.org'
gem 'minitest-hooks'
gem 'minitest-shared_description'
gem 'minitest-global_expectations'
# Plugin/Extension Dependencies
gem 'tzinfo'
if RUBY_VERSION < '2.1.0'
gem 'nokogiri', '<1.7.0'
elsif RUBY_VERSION < '2.3.0'
gem 'nokogiri', '<1.10.0'
else
gem 'nokogiri'
end
if RUBY_VERSION < '2.2.0'
gem 'activemodel', '<5.0.0'
else
gem 'activemodel'
end
if RUBY_VERSION < '2.0.0'
gem 'json', '<1.8.5'
gem 'rake', '<10.0.0'
else
gem 'json'
gem 'rake'
end
if RUBY_VERSION < '2.4.0'
# Until mintest 5.12.0 is fixed
gem 'minitest', '5.11.3'
else
gem 'minitest', '>= 5.7.0'
end
# MRI Adapter Dependencies
platforms :ruby do
sequel_pg = RUBY_VERSION.split('.')[1].to_i.send(Time.now.yday.even? ? :even? : :odd?)
gem "sqlite3"
if RUBY_VERSION < '2.0.0'
gem "pg", '<0.19.0'
gem "mysql2", '<0.5'
else
gem "pg", RUBY_VERSION < '2.2.0' ? '<1.2.0' : '>0'
gem "mysql2"
end
# Test current sequel_pg on half of the MRIs, and pure-ruby on the other half
if sequel_pg
gem 'sequel_pg', github: 'jeremyevans/sequel_pg', require: 'sequel'
end
end
# JRuby Adapter Dependencies
platforms :jruby do
gem 'jdbc-sqlite3'
gem 'jdbc-mysql'
gem 'jdbc-postgres'
end