Skip to content

Instantly share code, notes, and snippets.

@cecilemuller cecilemuller/.travis.yml
Last active Sep 1, 2019

Embed
What would you like to do?
Travis CI config to run headless Node tests via Xvfb
language: node_js
node_js:
- '6.9.1'
- '7.0.0'
sudo: false
addons:
apt:
packages:
- xvfb
install:
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- npm install
{
"scripts": {
"test": "electron-mocha --renderer test/*.js"
},
"devDependencies": {
"electron": "latest",
"electron-mocha": "latest"
}
}
@hisivasankar

This comment has been minimized.

Copy link

hisivasankar commented May 4, 2018

This worked for me. I am using gemini framework

@tscheepers

This comment has been minimized.

Copy link

tscheepers commented Jul 16, 2019

Travis changed the way you use xvfb to use:

services:
  - xvfb

source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.