---
language: node_js
node_js:
  - "0.10"
  - "0.12"
  - "4.2"
  - "5"

sudo: false

cache:
  directories:
    - node_modules

env:
  - NPM_SCRIPT=node-test-with-coverage
  - NPM_SCRIPT=client-test

matrix:
  fast_finish: true
  include:
  - node_js: "5"
    env: NPM_SCRIPT=jscs
  - node_js: "5"
    env: NPM_SCRIPT=lint
  allow_failures:
    - env: EMBER_TRY_SCENARIO=ember-canary

before_install:
  - export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH
  - "npm config set spin false"
  - "npm install -g npm@^2"

install:
  - node --version
  - npm install -g bower
  - npm install
  - bower install

script:
  - npm run-script $NPM_SCRIPT

---
language: node_js
node_js:
  - "0.10"
  - "0.12"
  - "4.2"
  - "5"

sudo: false

cache:
  directories:
    - node_modules

env:
  - NPM_SCRIPT=node-test
  - NPM_SCRIPT=client-test

matrix:
  fast_finish: true
  include:
  - node_js: "5"
    env: NPM_SCRIPT=jscs
  - node_js: "5"
    env: NPM_SCRIPT=lint
  - node_js: "5"
    env: NPM_SCRIPT=node-test-with-coverage
  allow_failures:
    - env: EMBER_TRY_SCENARIO=ember-canary

before_install:
  - export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH
  - "npm config set spin false"
  - "npm install -g npm@^2"

install:
  - node --version
  - npm install -g bower
  - npm install
  - bower install

script:
  - npm run-script $NPM_SCRIPT

Move coverage to a separate build-job, but the rest of the build should go back to being reliable
Move coverage to a separate build-job, but the rest of the build should
go back to being reliable
