language: node_js sudo: required dist: trusty node_js: - 'stable' - '6' cache: directories: - node_modules addons: apt: sources: - ubuntu-toolchain-r-test - google-chrome packages: - google-chrome-stable - google-chrome-beta env: - CXX=g++-4.8 - g++-4.8 - NPM_VERSION=3 - TRAVIS_NODE_VERSION="5" - TRAVIS_NODE_VERSION="6" before_install: - "nvm use $TRAVIS_NODE_VERSION" install: # Install version of npm that we are locked against - npm install -g npm@3 # - npm config set registry http://23.251.144.68 # Disable the spinner, it looks bad on Travis - npm config set spin false - sudo apt-get update -qq # Log HTTP requests - npm config set loglevel http # Install npm dependencies and ensure that npm cache is not stale - npm install - if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi before_script: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" notifications: email: true script: - npm test - npm coverage:report after_script: # Upload to coveralls, but don't _fail_ if coveralls is down. - cat coverage/lcov.info | node_modules/.bin/coveralls || echo "Coveralls upload failed" - node node_modules/lcov-filter/index.js lcov.info config | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage