Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

aonawale commented Jul 15, 2018

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