language: ruby
sudo: false
cache: bundler
rvm:
  - 2.2.8
script:
  - ./bin/rake spec:prepare
  - echo $SCRIPT_CMD
  - $SCRIPT_CMD
env:
  matrix:
    # travis-ci.org supports concurrency of 5, beyond that and they queue
    - SCRIPT_CMD="bundle exec rspec --pattern spec/{models}{,/**}/*_spec.rb"
    - SCRIPT_CMD="bundle exec rspec --pattern spec/{trackers}{,/**}/*_spec.rb"
    - SCRIPT_CMD="bundle exec rspec --pattern spec/{controllers,features,helpers,mailers,routing}{,/**}/*_spec.rb"
    - SCRIPT_CMD="./bin/rake jshint"
  global:
    - DATABASE_URL=postgres://postgres@localhost/bountysource_test
addons:
  postgresql: "9.4"
services:
  - postgresql
before_script:
  - psql -c 'create database bountysource_test;' -U postgres
branches:
  only:
    - master

language: ruby
sudo: false
cache: bundler
rvm:
  - 2.4.3
script:
  - ./bin/rake spec:prepare
  - echo $SCRIPT_CMD
  - $SCRIPT_CMD
env:
  matrix:
    # travis-ci.org supports concurrency of 5, beyond that and they queue
    - SCRIPT_CMD="bundle exec rspec --pattern spec/{models}{,/**}/*_spec.rb"
    - SCRIPT_CMD="bundle exec rspec --pattern spec/{trackers}{,/**}/*_spec.rb"
    - SCRIPT_CMD="bundle exec rspec --pattern spec/{controllers,features,helpers,mailers,routing}{,/**}/*_spec.rb"
    - SCRIPT_CMD="./bin/rake jshint"
  global:
    - DATABASE_URL=postgres://postgres@localhost/bountysource_test
addons:
  postgresql: "9.4"
services:
  - postgresql
before_script:
  - psql -c 'create database bountysource_test;' -U postgres
branches:
  only:
    - master

Test against project Ruby version 2.4.3
[CI] Test against project Ruby version 2.4.3