From 3b37c69b18d7b454e44200d217f80b3d80860bdb Mon Sep 17 00:00:00 2001 From: sayan goswami Date: Thu, 30 Nov 2023 23:31:58 +0530 Subject: [PATCH] revert chromedriver from orca --- bin/ci/before_install.sh | 70 ++++++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/bin/ci/before_install.sh b/bin/ci/before_install.sh index c9e5ddddf..ca28b4aa0 100755 --- a/bin/ci/before_install.sh +++ b/bin/ci/before_install.sh @@ -34,41 +34,41 @@ if [[ ! "$ORCA_COVERAGE_ENABLE" == TRUE ]]; then fi fi -if [[ "$JENKINS_HOME" ]]; then - # Install ChromeDriver. - # @see https://chromedriver.chromium.org/downloads/version-selection - # @see https://groups.google.com/g/chromedriver-users/c/clpipqvOGjE/m/5NxzS_SRAgAJ - # Get Google Chrome version. - CHROMEDRIVER="Google Chrome 112.0.5615.165" - echo "$CHROMEDRIVER" - CHROMEDRIVER_VERSION="$(echo "$CHROMEDRIVER" | awk '{print $3}')" - echo "CHROMEDRIVER_VERSION=$CHROMEDRIVER_VERSION" - # Cut off last part from google chrome version. - CHROMEDRIVER_VERSION_FAMILY="$(echo "$CHROMEDRIVER_VERSION" | awk -F'.' '{print $1,$2,$3}' OFS='.' )" - MAJOR="$(echo "$CHROMEDRIVER_VERSION_FAMILY" | awk -F'.' '{print $1}' )" - if (( $MAJOR < 115 )) - then - echo "VERSION_FAMILY=$CHROMEDRIVER_VERSION_FAMILY" - # check latest_release - VERSION=$(curl -f --silent https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROMEDRIVER_VERSION_FAMILY}) - echo "FINAL_VERSION=$VERSION" - # Download driver - wget -N https://chromedriver.storage.googleapis.com/${VERSION}/chromedriver_linux64.zip -P ~/ - unzip ~/chromedriver_linux64.zip -d ~/ -# rm ~/chromedriver_linux64.zip - mv -f ~/chromedriver /usr/local/share/ - chmod +x /usr/local/share/chromedriver - ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver - else - # Download driver - wget -N https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/${CHROMEDRIVER_VERSION}/linux64/chromedriver-linux64.zip -P ~/ - unzip ~/chromedriver-linux64.zip -d ~/ - rm ~/chromedriver-linux64.zip - mv -f ~/chromedriver-linux64/chromedriver /usr/local/share/ - chmod +x /usr/local/share/chromedriver - ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver - fi -fi +#if [[ "$JENKINS_HOME" ]]; then +# # Install ChromeDriver. +# # @see https://chromedriver.chromium.org/downloads/version-selection +# # @see https://groups.google.com/g/chromedriver-users/c/clpipqvOGjE/m/5NxzS_SRAgAJ +# # Get Google Chrome version. +# CHROMEDRIVER="Google Chrome 112.0.5615.165" +# echo "$CHROMEDRIVER" +# CHROMEDRIVER_VERSION="$(echo "$CHROMEDRIVER" | awk '{print $3}')" +# echo "CHROMEDRIVER_VERSION=$CHROMEDRIVER_VERSION" +# # Cut off last part from google chrome version. +# CHROMEDRIVER_VERSION_FAMILY="$(echo "$CHROMEDRIVER_VERSION" | awk -F'.' '{print $1,$2,$3}' OFS='.' )" +# MAJOR="$(echo "$CHROMEDRIVER_VERSION_FAMILY" | awk -F'.' '{print $1}' )" +# if (( $MAJOR < 115 )) +# then +# echo "VERSION_FAMILY=$CHROMEDRIVER_VERSION_FAMILY" +# # check latest_release +# VERSION=$(curl -f --silent https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROMEDRIVER_VERSION_FAMILY}) +# echo "FINAL_VERSION=$VERSION" +# # Download driver +# wget -N https://chromedriver.storage.googleapis.com/${VERSION}/chromedriver_linux64.zip -P ~/ +# unzip ~/chromedriver_linux64.zip -d ~/ +## rm ~/chromedriver_linux64.zip +# mv -f ~/chromedriver /usr/local/share/ +# chmod +x /usr/local/share/chromedriver +# ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver +# else +# # Download driver +# wget -N https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/${CHROMEDRIVER_VERSION}/linux64/chromedriver-linux64.zip -P ~/ +# unzip ~/chromedriver-linux64.zip -d ~/ +# rm ~/chromedriver-linux64.zip +# mv -f ~/chromedriver-linux64/chromedriver /usr/local/share/ +# chmod +x /usr/local/share/chromedriver +# ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver +# fi +#fi # Display PHP information.