language: node_js

node_js:
  - "0.12"
  - 4
  - 5

# to use native modules in node 4+, need to add clang or use trusty: https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements
#sudo: false
#compiler: clang-3.6
#env:
#    - CXX=clang-3.6
#addons:
#  apt:
#    sources:
#      - llvm-toolchain-precise-3.6
#      - ubuntu-toolchain-r-test
#    packages:
#      - clang-3.6
#      - g++-4.8
sudo: required
dist: trusty

branches:
    except:
        - gh-pages
        - /^v\d+(\.\d+){2}/

before_install:
    - npm i -g npm

after_script:
    - if [[ `node --version` == *v0.12* ]]; then cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js; fi

cache:
  directories:
    - node_modules

language: node_js

node_js:
  - "0.12"
  - 4
  - 5

# to use native modules in node 4+, need to add clang or use trusty: https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements
#sudo: false
#compiler: clang-3.6
#env:
#    - CXX=clang-3.6
#addons:
#  apt:
#    sources:
#      - llvm-toolchain-precise-3.6
#      - ubuntu-toolchain-r-test
#    packages:
#      - clang-3.6
#      - g++-4.8
sudo: required
dist: trusty

branches:
    except:
        - gh-pages
        - /^v\d+(\.\d+){2}/

before_install:
    - npm i -g npm

script:
    - npm run lint && npm test

after_script:
    - if [[ `node --version` == *v0.12* ]]; then cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js; fi

cache:
  directories:
    - node_modules

Make eslint errors fail the build
Make eslint errors fail the build
