No longer manually install ChromeDriver (#7271)

This commit is contained in:
junglebus 2020-02-22 06:03:15 +11:00 committed by GitHub
parent d5724f2f63
commit 966c64c48e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 18 deletions

View File

@ -321,24 +321,6 @@ stages:
if [[ "$(artifactName)" == *"macOS"* ]]; then sudo ./install_service_macos; fi
if [[ "$(artifactName)" == *"LinuxAMDx64"* ]]; then sudo ./install_service_systemd.sh; fi
#Remove this task once ChromeDriver is deployed to Ubuntu image https://github.com/actions/virtual-environments/issues/9
- task: Bash@3
displayName: Install ChromeDriver (Linux and Mono)
condition: and(succeeded(), eq(variables['imageName'], 'ubuntu-latest'))
inputs:
targetType: inline
script: |
CHROME_VERSION=$(google-chrome --version | cut -f 3 -d ' ' | cut -d '.' -f 1) \
&& CHROMEDRIVER_RELEASE=$(curl --location --fail --retry 3 http://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}) \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/chromedriver_linux64.zip "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \
&& cd /tmp \
&& unzip chromedriver_linux64.zip \
&& rm -rf chromedriver_linux64.zip \
&& sudo mv chromedriver /usr/local/bin/chromedriver \
&& sudo chmod +x /usr/local/bin/chromedriver \
&& chromedriver --version
echo "##vso[task.setvariable variable=CHROMEWEBDRIVER]/usr/local/bin"
- task: UseDotNet@2
displayName: Install .NET Core SDK
inputs: