mirror of
https://github.com/humhub/humhub.git
synced 2025-03-14 12:09:44 +01:00
Merge pull request #4449 from humhub/fix/travisChromeDriverVersion
Enh: auto chrome driver version detection
This commit is contained in:
commit
2dc3c2d797
@ -4,6 +4,9 @@
|
||||
set -ev
|
||||
|
||||
# Install chomedriver
|
||||
curl -s -L -o chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/84.0.4147.30/chromedriver_linux64.zip \
|
||||
CHROME_MAIN_VERSION=`google-chrome-stable --version | sed -E 's/(^Google Chrome |\.[0-9]+ )//g'`
|
||||
CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAIN_VERSION"`
|
||||
|
||||
curl "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O \
|
||||
&& unzip -o -d $HOME chromedriver_linux64.zip \
|
||||
&& chmod +x $HOME/chromedriver
|
||||
|
Loading…
x
Reference in New Issue
Block a user