language: node_js
node_js:
  - stable

sudo: false

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

before_script:
  - npm install

script:
  - node_modules/.bin/karma start karma.conf.js --no-auto-watch --single-run --browsers=Firefox
  - codeclimate-test-reporter < coverage/*/lcov.info

addons:
    firefox: latest
    code_climate:
        repo_token: 65e8dbb60c4122ae34a35bc6d312a3d0d16984cbf78e6fc8267c7e52f82d40bc
language: node_js
node_js:
  - stable

sudo: false

before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3 # give xvfb some time to start

script:
  - node_modules/.bin/karma start karma.conf.js --no-auto-watch --single-run --browsers=Firefox
  - codeclimate-test-reporter < coverage/*/lcov.info

addons:
    firefox: latest
    code_climate:
        repo_token: 65e8dbb60c4122ae34a35bc6d312a3d0d16984cbf78e6fc8267c7e52f82d40bc
Revert "Move xvfb stuff to install section and call npm install in before_script (as they do in the angular-seed project)"
Revert "Move xvfb stuff to install section and call npm install in before_script (as they do in the angular-seed project)"

This reverts commit d189e288bc8351889985a33827acacae7914ea5b.
