rvm: 2.6.1
sudo: required
branches:
  only:
    - master
cache: bundler
before_script:
  - echo -e "[mysqld]\ninnodb_file_format = Barracuda\ninnodb_file_per_table = 1\ninnodb_large_prefix = 1" | sudo sh -c "cat >> /etc/mysql/my.cnf"
  - sudo service mysql restart
  - bundle exec rake db:create db:migrate
  - mkdir -p /home/travis/build/k0kubun/github-ranking/tmp/cache
script:
  - bundle exec rake assets:precompile RAILS_ENV=production
  - bundle exec rake spec

rvm: 2.6.1
node_js: 8
sudo: required
branches:
  only:
    - master
cache: bundler
before_script:
  - echo -e "[mysqld]\ninnodb_file_format = Barracuda\ninnodb_file_per_table = 1\ninnodb_large_prefix = 1" | sudo sh -c "cat >> /etc/mysql/my.cnf"
  - sudo service mysql restart
  - bundle exec rake db:create db:migrate
  - mkdir -p /home/travis/build/k0kubun/github-ranking/tmp/cache
script:
  - bundle exec rake assets:precompile RAILS_ENV=production
  - bundle exec rake spec

Use node_js: 8 on Travis
Use node_js: 8 on Travis
