language: node_js node_js: - "4" notifications: email: false # ensure we're using the container-based infrastructure # see https://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure sudo: false install: - npm install -g npm@^3 - npm install # enable firefox before_script: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start script: # --silent surpresses that big ol' NPM script error - npm run-script lint --silent - npm run-script test --silent cache: directories: - node_modules # enable native dependencies for node 4.x # see https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8