language: node_js node_js: - 6 sudo: false before_install: - npm update -g npm - mkdir travis-phantomjs - wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 - tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs - export PATH=$PWD/travis-phantomjs:$PATH install: # This is to "fix" an NPM bug that "forgets" to install the right version of glob in the first npm install :( - npm install - npm install --ignore-scripts env: global: - SAUCE_USERNAME=htmlbars-ci - SAUCE_ACCESS_KEY=71947947-f373-4e9c-9166-23038df7ddf2 matrix: - TEST_NODE=1 TEST_BROWSERS=1 matrix: fast_finish: true before_script: - npm run sauce:connect script: - npm run test:ci after_script: - sleep 10 - npm run sauce:disconnect