Created
August 17, 2016 13:57
-
-
Save Arjeno/8564d9643f16d072a85b9c9b5a9f7de0 to your computer and use it in GitHub Desktop.
Always use the latest version of Chrome on CircleCI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
for an updated answer related to CircleCI 2.0 see this gist: https://gist.github.com/phra/192b6c0ada3f6eaf4029e430430b79fe
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
To use the beta version just use
https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb