Skip to content

Instantly share code, notes, and snippets.

@mupkoo
Created August 22, 2017 08:07
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mupkoo/1a4db83136a174a94e0626640fe38d8a to your computer and use it in GitHub Desktop.
Save mupkoo/1a4db83136a174a94e0626640fe38d8a to your computer and use it in GitHub Desktop.
Using Ember-CLI with Chrome on GitLab CI
image: node:7.10
cache:
paths:
- node_modules/
- bower_components/
before_script:
# Install Chrome
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
- apt-get update -yqqq
- apt-get install -y google-chrome-stable > /dev/null 2>&1
- npm install --silent
# Remove if you don't have bower deps
- npm install -g bower
- bower install --allow-root --silent
test:
stage: test
script:
- ./node_modules/.bin/ember test
/* eslint-env node */
module.exports = {
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
parallel: 4,
launch_in_ci: [
'Chrome'
],
launch_in_dev: [
'Chrome'
],
browser_args: {
Chrome: [
'--headless',
'--remote-debugging-port=9222'
]
}
};
@aonawale
Copy link

It's failing in ci with

not ok 1 Chrome - error
    ---
        message: >
            Error: Browser exited unexpectedly
            Non-zero exit code: 1
            Stderr: 
             [2384:2384:0715/123454.632874:ERROR:zygote_host_impl_linux.cc(88)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment