branches:
  only:
    - master

language: node_js

os:
  - linux

sudo: false

node_js:
  - "8"
  - "6"

matrix:
  fast_finish: true

git:
  depth: 1

install:
  - npm install
  - npm install coveralls --save-dev

script:
  - npm run build;
  - npm run nyc

after_success:
  - npm run coverage

branches:
  only:
    - master

language: node_js

os:
  - linux

sudo: false

node_js:
  - "8"
  - "6"

matrix:
  fast_finish: true

git:
  depth: 1

install:
  - npm install
  - npm install coveralls --save-dev

before_script:
  - npm run build;

script:
  - npm run nyc

after_success:
  - npm run coverage

Make compilation errors fail the build
Make compilation errors fail the build

Move the build step into a before_script so that it'll halt the build
should it fail.

Signed-off-by: Remy Suen <553f7e7fc51e9ff47ae89d5a0ebd06651241b998@gmail.com>
