Skip to content

Commit 93d9cea

Browse files
committed
Merge pull request #978 from projectblacklight/travis-build
Simplify travis builds
2 parents 7a04b4d + 95995c6 commit 93d9cea

File tree

5 files changed

+23
-51
lines changed

5 files changed

+23
-51
lines changed

.travis.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,34 @@ notifications:
22
email: false
33

44
rvm:
5-
- 2.1.1
6-
- 2.0.0
5+
- 2.1.2
76

87
matrix:
98
include:
10-
- rvm: 2.1.0
11-
gemfile: gemfiles/rails4.gemfile
9+
- rvm: 2.1.2
10+
env: "RAILS_VERSION=4.0.9"
11+
- rvm: 2.0.0
12+
env: "RAILS_VERSION=4.1.5"
1213
- rvm: 1.9.3
13-
gemfile: gemfiles/rails4.gemfile
14+
env: "RAILS_VERSION=4.1.5"
1415
- rvm: jruby
15-
gemfile: gemfiles/rails4.gemfile
16-
16+
env: "RAILS_VERSION=4.1.5 JRUBY_OPTS=\"-J-Xms512m -J-Xmx1024m\""
17+
- rvm: 2.1.2
18+
env: "RAILS_VERSION=4.2.0.beta1"
19+
allow_failures:
20+
- env: "RAILS_VERSION=4.2.0.beta1"
21+
1722
before_install:
18-
- gem install bundler
23+
- gem install bundler
1924

20-
gemfile:
21-
- gemfiles/rails3.gemfile
22-
- gemfiles/rails4.gemfile
23-
- gemfiles/rails4.1.gemfile
25+
env:
26+
- "RAILS_VERSION=3.2.19"
27+
- "RAILS_VERSION=4.1.5"
2428

2529
notifications:
2630
irc: "irc.freenode.org#blacklight"
2731
email:
2832
2933

30-
env:
31-
global:
32-
- JRUBY_OPTS="-J-Xms512m -J-Xmx1024m"
33-
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
34+
global_env:
35+
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ source 'https://rubygems.org'
33
# Please see blacklight.gemspec for dependency information.
44
gemspec path: File.expand_path('..', __FILE__)
55

6-
76
# Peg simplecov to < 0.8 until this is resolved:
87
# https://github.com/colszowka/simplecov/issues/281
98
gem 'simplecov', '~> 0.7.1', require: false
@@ -20,4 +19,9 @@ file = File.expand_path("Gemfile", ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_
2019
if File.exists?(file)
2120
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
2221
instance_eval File.read(file)
22+
else
23+
gem 'rails', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
24+
25+
# explicitly include sass-rails to get compatible sprocket dependencies
26+
gem 'sass-rails'
2327
end

gemfiles/rails3.gemfile

Lines changed: 0 additions & 9 deletions
This file was deleted.

gemfiles/rails4.1.gemfile

Lines changed: 0 additions & 12 deletions
This file was deleted.

gemfiles/rails4.gemfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)