J'utilise Electron pour créer une application multi-plateforme en utilisant javascript. J'ai de la difficulté à faire en sorte que Travis CI réussisse bien.L'application Electron Travis CI construit échoue
Le docs on setting it up dire que mon .travis.yml
devrait ressembler à ceci:
addons:
apt:
packages:
- xvfb
install:
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
Mon actuelle .travis.yml
ressemble à ceci:
language: node_js
node_js:
- "node"
addons:
apt:
packages:
- xvfb
before_install:
- cd src/
install:
- npm install
before_script:
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 +extension GLX +extension RANDR > /dev/null 2>&1 &
script:
- npm test
Et voici un journal de la construction (dans un pastebin parce qu'il est énorme): https://pastebin.com/8N4P2S7Y. La partie importante est ci-dessous:
> [email protected] test /home/travis/build/blabel3/ThemeCreator/src
> electron .
Xlib: extension "RANDR" missing on display ":99.0".
Xlib: extension "RANDR" missing on display ":99.0".
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated
Merci beaucoup pour toute aide que vous pouvez fournir!
Vous pouvez également utiliser '' 'xvfb-run my_script''' pour réduire certaines configurations. http://manpages.ubuntu.com/manpages/zesty/man1/xvfb-run.1.html – renemilk