-
-
Save AdamT/8de37971696a96474b82b3f11bf59113 to your computer and use it in GitHub Desktop.
My CircleCI 1.0 configuration to enable Chrome headless.
This file contains 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
dependencies: | |
pre: | |
# install chrome | |
- wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/ | |
- sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb | |
- sudo apt-get -f install -y | |
- sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb | |
- sudo rm /usr/local/bin/chromedriver | |
# install chromedriver | |
- wget -N http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P ~/ | |
- unzip ~/chromedriver_linux64.zip -d ~/ | |
- rm ~/chromedriver_linux64.zip | |
- sudo mv -f ~/chromedriver /usr/local/bin/chromedriver | |
- sudo chown root:root /usr/local/bin/chromedriver | |
- sudo chmod 0755 /usr/local/bin/chromedriver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment