Last active
May 8, 2018 07:21
-
-
Save timtyrrell/f66f9d5b14deabfbcf06fbe4e21ad711 to your computer and use it in GitHub Desktop.
Gitlab config to run electron on our Gitlab CoreOS 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
image: node:latest | |
stages: | |
- build | |
cache: | |
paths: | |
- node_modules/ | |
build_and_test_job: | |
stage: build | |
script: | |
- apt-get update | |
- apt-get install -y xvfb libgtk2.0-0 libnotify4 libgconf-2-4 libnss3 | |
- export DISPLAY=':99.0' | |
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
- npm i -g electron-prebuilt | |
- npm install --loglevel=warn --spin=false | |
- npm run test-ci |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment