Skip to content

Instantly share code, notes, and snippets.

@timtyrrell
Last active May 8, 2018 07:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timtyrrell/f66f9d5b14deabfbcf06fbe4e21ad711 to your computer and use it in GitHub Desktop.
Save timtyrrell/f66f9d5b14deabfbcf06fbe4e21ad711 to your computer and use it in GitHub Desktop.
Gitlab config to run electron on our Gitlab CoreOS install
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