Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.66 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.66 KB

chrome-setup.sh

This script installs the selected version of chrome and chromedriver (chrome-for-testing) in Semaphore's jobs.

At the moment only linux64 is supported.

How it works

It will download and extract chrome-linux64.zip and chromedriver-linux64.zip packages for the chosen version and update symlinks.

Use it for versions 115.0.5763.0 and above since this is the lowest supported version for chromedriver for this installation method.

For fast and reliable installation in jobs, Semaphore will host a limited number of versions.
Those supported versions can be found in this variable.

It is recommended to use versions available from Semaphore's repository, but if you need some other version the script will automatically try to fetch it from Google's repository based on known-good-versions-with-downloads.json list.

How to use it

Download the script, make it executable, and run it with the desired version.

Example:

wget -q https://raw.githubusercontent.com/renderedtext/snippets/master/chrome-setup/chrome-setup.sh -O ~/chrome-setup.sh
chmod +x ~/chrome-setup.sh
~/chrome-setup.sh 125.0.6422.78

Supported arguments:

Usage:
  chrome-setup.sh [argument]

List of arguments:
  [version]             Setup selected chrome and chromedriver version (e.g. 125.0.6422.78)
  list-semaphore        List versions available in Semaphore's repository
  list-google           List versions available in Google's repository
  usage | help          Display this message