sudo: required
services:
  - docker
script: docker run -it -v "$PWD":/usr/src -w /usr/src markhobson/node-chrome bash -c "npm install --unsafe-perm && npm test"

sudo: required
services:
  - docker
install: docker run -it -v "$PWD":/usr/src -w /usr/src markhobson/node-chrome npm install --unsafe-perm
script: docker run -it -v "$PWD":/usr/src -w /usr/src markhobson/node-chrome npm test

Split Travis config into install and test commands
Split Travis config into install and test commands
