language: ruby
rvm:
  - 2.2.7
  - 2.3.4
  - 2.4.1
  - ruby-head

sudo: false

matrix:
  allow_failures:
    - rvm: ruby-head

branches:
  only:
    - master

before_install:
  - 'cp config/database.yml.sqlite3 config/database.yml'

before_script:
  - 'RAILS_ENV=test bundle exec rake setup'
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"

script: 'RAILS_ENV=test bundle exec rake db:drop db:create db:migrate spec konacha:run && RAILS_ENV=production bundle exec rake assets:precompile '

language: ruby
rvm:
  - 2.2.7
  - 2.3.6
  - 2.4.3
  - 2.5.0
  - ruby-head

sudo: false

matrix:
  allow_failures:
    - rvm: ruby-head

branches:
  only:
    - master

before_install:
  - 'cp config/database.yml.sqlite3 config/database.yml'

before_script:
  - 'RAILS_ENV=test bundle exec rake setup'
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"

script: 'RAILS_ENV=test bundle exec rake db:drop db:create db:migrate spec konacha:run && RAILS_ENV=production bundle exec rake assets:precompile '

Add Ruby 2.5.0 on CI
Add Ruby 2.5.0 on CI

and Update old rubies.
