Using the latest version of Chrome on CircleCI

Continuing the discussion from Update Chrome in container image:

@levlaz Can you please upload the latest chrome version (current is 51.0.2704.106). The default chrome version on CircleCI is 43.x.

4 Likes

Would it be possible to upload a 5x.x to the circle-downloads folder? We can’t move to ubuntu 14.04 atm so we’re relying on this method to get an updated version of chrome.

Using Ubuntu 14.04 (Trusty) in the CircleCI’s OS setting (Settings > Build Environment), the following worked for me.

dependencies:
  pre:
    - 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

It always installs the latest version of chrome.

Script was provided here: https://gist.github.com/Arjeno/8564d9643f16d072a85b9c9b5a9f7de0