language: node_js
os:
  - linux
dist: xenial
node_js:
  - node
addons:
  apt:
    packages:
      - xvfb
before_script:
  - export DISPLAY=':99.0'
  - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
  - sleep 3
cache:
  directories:
    - node_modules
branches:
  only:
    - master

language: node_js
os:
  - linux
dist: xenial
node_js:
  - node
services:
  - xvfb
script: xvfb-run --server-args="-screen 0 1024x768x24" make test
cache:
  directories:
    - node_modules
branches:
  only:
    - master

Use xvfb to emulate gui in tests
Use xvfb to emulate gui in tests
