sudo: required
dist: trusty

addons:
  apt:
    packages:
    - mysql-server-5.6
    - mysql-client-core-5.6
    - mysql-client-5.6

language: ruby

rvm:
  - 2.3.1

services:
  - mysql

notifications:
  email: false

before_install:
  - bundle config github.https true
  - nvm install
  - npm install -g yarn

before_script:
  - cp config/database.yml.mysql config/database.yml
  - mysql -u root -h 127.0.0.1 -e 'create database imgshr_test;'

script:
  - RAILS_ENV=test bundle exec rails db:migrate
  - RAILS_ENV=test bundle exec ./bin/webpack
  - bundle exec rails test

sudo: required
dist: trusty

addons:
  apt:
    packages:
    - mysql-server-5.6
    - mysql-client-core-5.6
    - mysql-client-5.6

language: ruby

rvm:
  - 2.3.1

services:
  - mysql

notifications:
  email: false

before_install:
  - bundle config github.https true
  - nvm install
  - npm install -g yarn
  - yarn

before_script:
  - cp config/database.yml.mysql config/database.yml
  - mysql -u root -h 127.0.0.1 -e 'create database imgshr_test;'

script:
  - RAILS_ENV=test bundle exec rails db:migrate
  - RAILS_ENV=test bundle exec ./bin/webpack
  - bundle exec rails test

Install JS dependencies on Travis CI
Install JS dependencies on Travis CI
