Skip to content

Instantly share code, notes, and snippets.

@svparijs
Forked from mupkoo/.gitlab-ci.yml
Created October 11, 2017 12:29
Show Gist options
  • Save svparijs/6f2c7667a8a83f83370ebaa7aef1ddb3 to your computer and use it in GitHub Desktop.
Save svparijs/6f2c7667a8a83f83370ebaa7aef1ddb3 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'
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment