Last active
September 1, 2019 18:27
-
-
Save cecilemuller/764afa5d4c67e17741d9bc258b45cdc1 to your computer and use it in GitHub Desktop.
Travis CI config to run headless Node tests via Xvfb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"test": "electron-mocha --renderer test/*.js" | |
}, | |
"devDependencies": { | |
"electron": "latest", | |
"electron-mocha": "latest" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This worked for me. I am using gemini framework