language: node_js
sudo: false
cache:
  apt: true
  directories:
    - node_modules
    - deps
    - /usr/local/Cellar/
node_js:
  - "0.12"
  - "4"
  - "6"

before_install:
  - if [[ "$USE_RBENV" == "osx" ]]; then brew update; fi
  - if [[ "$USE_RBENV" == "osx" ]]; then brew install rbenv; fi

matrix:
  matrix:
    allow_failures:
      - os: osx
        osx_image: xcode7.2
      - os: linux
        dist: trusty
  include:
    - os: linux
      dist: trusty
      sudo: required
    - os: osx
      osx_image: beta-xcode6.1
    - os: osx
      osx_image: xcode7.2
    - os: osx
      osx_image: xcode8
      env: USE_RBENV=1

language: node_js
sudo: false
cache:
  apt: true
  directories:
    - node_modules
    - deps
    - /usr/local/Cellar/
node_js:
  - "0.12"
  - "4"
  - "6"

before_install:
  - if [[ "$USE_RBENV" == "osx" ]]; then brew update; fi
  - if [[ "$USE_RBENV" == "osx" ]]; then brew install rbenv; fi

matrix:
  matrix:
    allow_failures:
      - os: osx
        osx_image: xcode7.2
      - os: osx
        osx_image: xcode8
      - os: linux
        dist: trusty
  include:
    - os: linux
      dist: trusty
      sudo: required
    - os: osx
      osx_image: beta-xcode6.1
    - os: osx
      osx_image: xcode7.2
    - os: osx
      osx_image: xcode8
      env: USE_RBENV=1

Allow more failures from osx for now
Allow more failures from osx for now
