Skip to content

Instantly share code, notes, and snippets.

@odlp
Last active May 23, 2018 14:31
Show Gist options
  • Save odlp/47ce3188f672ea33af695d15f707f9b5 to your computer and use it in GitHub Desktop.
Save odlp/47ce3188f672ea33af695d15f707f9b5 to your computer and use it in GitHub Desktop.
Update Chrome on CI
#!/bin/sh
# Exit if any subcommand fails
set -e
# Install latest stable version of Chrome
curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome.deb
sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
rm google-chrome.deb
dependencies:
pre:
- bin/ci_update_chrome
@iwz
Copy link

iwz commented May 23, 2018

If you find yourself wanting to do this, please try using a newer docker image from Circle:

jobs:
  build:
    docker:
       - image: circleci/ruby:2.5.1-node-browsers

On images with older versions of Ruby, Chrome seems to break a lot. It's stable now on the latest version of the image.

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