language: node_js
dist: trusty
node_js:
  - "4"
  - "6"
  - "7"
before_install:
  - 'echo ''gem: --no-ri --no-rdoc'' > ~/.gemrc'
install:
  - npm i -g npm
  - npm install
  - rvm install 2.3.1
  - rvm use 2.3.1
  - gem install danger --version '~> 4.0'
before_script:
  - ruby -v
script:
  - danger
  - npm run lint && npm run test
notifications:
  email:
    on_failure: change
cache:
  yarn: true
  bundler: true
  directories:
    - node_modules

language: node_js
dist: trusty
node_js:
  - "6"
  - "7"
before_install:
  - 'echo ''gem: --no-ri --no-rdoc'' > ~/.gemrc'
install:
  - npm i -g npm
  - npm install
  - rvm install 2.3.1
  - rvm use 2.3.1
  - gem install danger --version '~> 4.0'
before_script:
  - ruby -v
script:
  - danger
  - npm run lint && npm run test
notifications:
  email:
    on_failure: change
cache:
  yarn: true
  bundler: true
  directories:
    - node_modules

Stop testing on Node v4 on Travis
Stop testing on Node v4 on Travis

Travis with Node v4 was failing because we're using some ES6 syntax in
the rollup config it doesn't understand. Since styled-components runs in
the browser and developers should be using Node v6 anyway due to the
publishing bug there's no point in testing Node v4, so I've disabled it.
