language: ruby
rvm:
- '2.3.1'
- '2.4.2'
sudo: false
cache: bundler
env:
  global:
  - RUBY_GC_HEAP_GROWTH_MAX_SLOTS=300000
  - RUBY_GC_HEAP_INIT_SLOTS=600000
  - RUBY_GC_HEAP_GROWTH_FACTOR=1.25
addons:
  postgresql: '9.4'
install: bin/setup
after_script: bundle exec codeclimate-test-reporter
notifications:
  webhooks:
    urls:
    - https://webhooks.gitter.im/e/46abb9c5f1f009b6a699
    on_success: change
    on_failure: always
    on_start: never

language: ruby
rvm:
- '2.3.1'
- '2.4.2'
sudo: false
cache: bundler
env:
  global:
  - RUBY_GC_HEAP_GROWTH_MAX_SLOTS=300000
  - RUBY_GC_HEAP_INIT_SLOTS=600000
  - RUBY_GC_HEAP_GROWTH_FACTOR=1.25
addons:
  postgresql: '9.4'
before_install:
- rvm @global do gem uninstall bundler -a -x
- rvm @global do gem install bundler -v 1.15.4
install: bin/setup
after_script: bundle exec codeclimate-test-reporter
notifications:
  webhooks:
    urls:
    - https://webhooks.gitter.im/e/46abb9c5f1f009b6a699
    on_success: change
    on_failure: always
    on_start: never

Downgrade bundler to 1.15.4 because 1.16.0 is problematic
Downgrade bundler to 1.15.4 because 1.16.0 is problematic

[----] E, [2017-11-01T20:08:14.255329 #6863:4b29e0] ERROR -- : Method STDERR: The following error occurred during inline method preamble evaluation:
[----] E, [2017-11-01T20:08:14.255495 #6863:4b29e0] ERROR -- : Method STDERR: LoadError: cannot load such file -- concurrent/map
[----] E, [2017-11-01T20:08:14.255555 #6863:4b29e0] ERROR -- : Method STDERR: /home/travis/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
[----] E, [2017-11-01T20:08:14.255611 #6863:4b29e0] ERROR -- : Method STDERR: /home/travis/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
[----] E, [2017-11-01T20:08:14.255663 #6863:4b29e0] ERROR -- : Method STDERR: /home/travis/build/ManageIQ/manageiq-automation_engine/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/inflector/inflections.rb:1:in `<top (required)>'
