language: python
sudo: false
cache:
  directories:
    - node_modules
env:
  - DISPLAY=:99.0

before_install:
  - "npm install -g npm && npm install"

before_script:
  - "rm src/ol/renderer/webgl/*shader.js"
  - "sh -e /etc/init.d/xvfb start"

script: "make ci"

after_success:
  - "make test-coverage"
  - "cat coverage/lcov.info | ./node_modules/.bin/coveralls"

branches:
  only:
    - master
