Skip to content

Instantly share code, notes, and snippets.

@Arjeno
Created August 17, 2016 13:57
Show Gist options
  • Save Arjeno/8564d9643f16d072a85b9c9b5a9f7de0 to your computer and use it in GitHub Desktop.
Save Arjeno/8564d9643f16d072a85b9c9b5a9f7de0 to your computer and use it in GitHub Desktop.
Always use the latest version of Chrome on CircleCI
# This makes sure Chrome is always up to date in your test suite
# On average this adds about 10 seconds to your build suite
# Be sure to use Ubuntu 14.04 (Trusty) in the CircleCI's OS setting (Settings > Build Environment)
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
@shermaneric
Copy link

shermaneric commented Apr 20, 2018

EDIT: Oops, ignore. I'm reading @phra comment above that satisfies this below

Thanks so much!
I was having success with this, but now i'm getting the below. Should I just pre-process with this?

sudo apt-get update
sudo apt-get install libappindicator3-1
Failing command: sudo dpkg -i google-chrome.deb 
Exit code: 1 
Output:
(Reading database ... 30670 files and directories currently installed.)
Preparing to unpack google-chrome.deb ...
Unpacking google-chrome-stable (66.0.3359.117-1) over (60.0.3112.101-1) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on libappindicator3-1; however:
  Package libappindicator3-1 is not installed.

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