language: node_js
node_js:
  - "8.0"

before_install:
  - npm install -g yarn --cache-min 999999999

install:
  - yarn install
  - ls

script: 
  - yarn test

# # safelist
# branches:
#   only:
#   - master
language: node_js
node_js:
  - "8.0"

before_install:
  - npm install -g yarn --cache-min 999999999

install:
  - yarn install
  - ls

script: 
  # Test script runs yarn test and looks for the 'Failed Tests' string, returning an error exit code if found.
  # Necessary because tap test reporters don't ever return an error code.
  - yarn test | grep 'Failed Tests' && return 1 || return 0

# # safelist
# branches:
#   only:
#   - master
Return an error code if yarn test result contains 'Failed Tests'.
Return an error code if yarn test result contains 'Failed Tests'.
