language: node_js

node_js:
  - 0.10

env:
  global:
    - secure: UR3Fth+3x7k4zAiYUe/GNM19HhaboA/v1XhHC9IO239beIzZAwqbIi0IKpt8rNWXxnoSS8oVlz7ABoFy3iilXDNGE2t6r53mDllWT8SlcBNMgDp+A56VzClVGodJatTkrPTWmu8dGsa9YaIVOBbAvytalEgd3ib4rk0MQl/y1zs=

before_install:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

before_script:
  - npm run-script build

after_success:
  - npm install codeclimate-test-reporter coveralls
  - ./node_modules/.bin/istanbul cover --report lcovonly ./node_modules/.bin/_mocha -- ./test/test.js
  - cat ./coverage/lcov.info | ./node_modules/.bin/codeclimate
  - cat ./coverage/lcov.info | ./node_modules/.bin/coveralls

language: node_js

node_js:
  - 0.10

env:
  global:
    - secure: UR3Fth+3x7k4zAiYUe/GNM19HhaboA/v1XhHC9IO239beIzZAwqbIi0IKpt8rNWXxnoSS8oVlz7ABoFy3iilXDNGE2t6r53mDllWT8SlcBNMgDp+A56VzClVGodJatTkrPTWmu8dGsa9YaIVOBbAvytalEgd3ib4rk0MQl/y1zs=
    - secure: QBa2wL7RpzffwO7oKM0pecfnMO9dExnsJv9AuOt8FY60vWD8aoa8nVVo6GbJ8zMxmFRaFK3uNzzezsUBCDXdY8aEjn4+39nczg+yGp5TW60drzs+aJdSI0W7bNOlquueqqfuxFnkptggxWzdFospu4iYAcYELggPVVYTlHkKfbE=

before_install:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

before_script:
  - npm run-script build

after_success:
  - npm install codeclimate-test-reporter coveralls
  - ./node_modules/.bin/istanbul cover --report lcovonly ./node_modules/.bin/_mocha -- ./test/test.js
  - cat ./coverage/lcov.info | ./node_modules/.bin/codeclimate
  - cat ./coverage/lcov.info | ./node_modules/.bin/coveralls

Add the Coveralls repo token
Add the Coveralls repo token
