language: node_js
node_js: stable

sudo: false
dist: trusty

install: true # yarn bug

branch:
  only:
    - master

cache:
    directories:
      - node_modules

before_install:
  - npm install -g typings
  - npm install -g karma-cli
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

script:
  - npm install
  - typings install
  - ./node_modules/.bin/karma start karma.conf.js --auto-watch --single-run --reporters dots,coverage