mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-16 03:43:12 +00:00
New version of Electron has enable by default sandbox http://www.atom.pe/docs/api/sandbox-option/ There was some issues to migrate a new version of Electron for MagicMirror. Using the new version in Travis CI was failing at this time. The problem is because the testing runner is a Docker enviroment The issue experimented is the same topic mentioned here: - https://github.com/electron/electron/issues/17972 - https://github.com/electron-userland/spectron/issues/443 The fix for to all of this is to set the `--no-sandbox` mode in CI testing https://electronjs.org/docs/all#--no-sandbox This change use the feature to set and disable Sandbox using by enviroment variable `ELECTRON_DISABLE_SANDBOX=1` https://github.com/electron/electron/pull/16576 This change has reference #1800
23 lines
371 B
YAML
23 lines
371 B
YAML
dist: trusty
|
|
language: node_js
|
|
node_js:
|
|
- "10"
|
|
before_install:
|
|
- npm i -g npm
|
|
before_script:
|
|
- yarn danger ci
|
|
- npm install grunt-cli -g
|
|
- "export DISPLAY=:99.0"
|
|
- "export ELECTRON_DISABLE_SANDBOX=1"
|
|
- "sh -e /etc/init.d/xvfb start"
|
|
- sleep 5
|
|
script:
|
|
- npm run test:e2e
|
|
- npm run test:unit
|
|
- grunt
|
|
after_script:
|
|
- npm list
|
|
cache:
|
|
directories:
|
|
- node_modules
|