Skip to content

Commit

Permalink
Merge pull request #21 from rspec/update-build
Browse files Browse the repository at this point in the history
Update .travis.yml inline with rspec-core
  • Loading branch information
JonRowe committed Sep 12, 2019
2 parents dbd637b + f981c6a commit bccb1f7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 9 deletions.
35 changes: 26 additions & 9 deletions .travis.yml
@@ -1,6 +1,11 @@
# This file was generated on 2014-03-30T13:16:22-07:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# In order to install old Rubies, we need to use old Ubuntu distibution.
dist: trusty
language: ruby
email: false

bundler_args: "--binstubs --standalone --without documentation --path ../bundle"
script: "script/run_build"
before_install:
Expand All @@ -9,29 +14,41 @@ rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0
- 2.0.0
- 2.1
- 2.2
- 2.3.0
- 2.2.10
- 2.3.8
- 2.4.6
- 2.5.5
- 2.6.3
- ree
- jruby-18mode
- jruby
- rbx-2
- rbx-3
matrix:
include:
- rvm: jruby
env: JRUBY_OPTS='--2.0'
- rvm: 2.2
- rvm: 2.6.3
env: RSPEC_VERSION='3-0-maintenance'
- rvm: 2.2
- rvm: 2.6.3
env: RSPEC_VERSION='3-1-maintenance'
- rvm: 2.2
- rvm: 2.6.3
env: RSPEC_VERSION='3-2-maintenance'
- rvm: 2.2
- rvm: 2.6.3
env: RSPEC_VERSION='3-3-maintenance'
- rvm: 2.2
- rvm: 2.6.3
env: RSPEC_VERSION='3-4-maintenance'
- rvm: 2.6.3
env: RSPEC_VERSION='3-5-maintenance'
- rvm: 2.6.3
env: RSPEC_VERSION='3-6-maintenance'
- rvm: 2.6.3
env: RSPEC_VERSION='3-7-maintenance''
- rvm: 2.6.3
env: RSPEC_VERSION='3-8-maintenance''
allow_failures:
- rvm: jruby
env: JRUBY_OPTS='--2.0'
- rvm: rbx-3
fast_finish: true
12 changes: 12 additions & 0 deletions Gemfile
Expand Up @@ -8,8 +8,20 @@ platforms :ruby do
gem 'github-markup', '0.7.2'
end

if RUBY_VERSION < '2.2.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
gem 'ffi', '< 1.10'
elsif RUBY_VERSION < '2.0'
gem 'ffi', '< 1.9.19' # ffi dropped Ruby 1.8 support in 1.9.19
elsif defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
gem 'ffi', '< 1.11.0'
else
gem 'ffi', '~> 1.11.0'
end

gem 'simplecov', '~> 0.8'

gem 'contracts', '< 0.16' if RUBY_VERSION < '1.9.0'

platforms :ruby_18, :jruby do
gem 'json'
end
Expand Down

0 comments on commit bccb1f7

Please sign in to comment.