Commit 0f65d96f by Daniel Ruf Committed by justadudewhohacks

ci: use Chrome addon (#122)

* ci: use Chrome addon * ci: start Chrome in headless mode * ci: start xvfb for Chrome stable
parent b8841daa
...@@ -4,13 +4,12 @@ node_js: ...@@ -4,13 +4,12 @@ node_js:
- "10" - "10"
env: env:
- BACKEND_CPU=true EXCLUDE_UNCOMPRESSED=true - BACKEND_CPU=true EXCLUDE_UNCOMPRESSED=true
before_script: addons:
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - chrome: stable
- sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' before_install:
- sudo apt-get update - export DISPLAY=:99.0
- sudo apt-get install google-chrome-stable - sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0 - sleep 3 # give xvfb some time to start
- sh -e /etc/init.d/xvfb start
script: script:
- npm run test-travis - npm run test-travis
- npm run build - npm run build
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment