Skip to content

Instantly share code, notes, and snippets.

@AdamT
Forked from vtno/circle.yml
Created June 11, 2018 23:47
Show Gist options
  • Save AdamT/8de37971696a96474b82b3f11bf59113 to your computer and use it in GitHub Desktop.
Save AdamT/8de37971696a96474b82b3f11bf59113 to your computer and use it in GitHub Desktop.
My CircleCI 1.0 configuration to enable Chrome headless.
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