Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Start xvfb on linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-shatskyi committed Jul 21, 2017
1 parent 1fb97ad commit 0e5a91c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
language: node_js

before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi

matrix:
include:
- os: linux
sudo: required
dist: trusty
- os: osx
osx_image: xcode7.3

cache:
directories:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"prestart": "npm install && npm run compile",
"start": "concurrently --kill-others -s first \"tsc --watch\" \"cross-env NODE_ENV=development npm run electron\"",
"test": "npm run lint && npm run compile && npm run unit-tests && npm run ui-tests && npm run integration-tests",
"unit-tests": "find test -name '*_spec.ts'",
"unit-tests": "electron-mocha --require ts-node/register $(find test -name '*_spec.ts')",
"ui-tests": "electron-mocha --require ts-node/register $(find test -name '*_spec.tsx')",
"integration-tests": "electron-mocha --require ts-node/register test/e2e.ts",
"update-dependencies": "ncu -u",
Expand Down

0 comments on commit 0e5a91c

Please sign in to comment.