sudo: required
language: ruby
rvm:
  - 2.2.6
cache:
  bundler: true
  directories:
    - node_modules
  yarn: true

install:
  - nvm install node
  - node -v
  - npm i -g yarn
  - yarn
script:
  - yarn lint

sudo: false
language: ruby
rvm:
  - 2.2.6
  - 2.3.3
  - 2.4.1
cache:
  bundler: true
  directories:
    - node_modules
  yarn: true

install:
  - nvm install node
  - node -v
  - npm i -g yarn
  - yarn
script:
  - yarn lint

Test on Ruby 2.3 and 2.4, don't require sudo
Test on Ruby 2.3 and 2.4, don't require sudo
