1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-25 17:27:48 +00:00

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

View file

@ -321,24 +321,6 @@ stages:
if [[ "$(artifactName)" == *"macOS"* ]]; then sudo ./install_service_macos; fi if [[ "$(artifactName)" == *"macOS"* ]]; then sudo ./install_service_macos; fi
if [[ "$(artifactName)" == *"LinuxAMDx64"* ]]; then sudo ./install_service_systemd.sh; 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 - task: UseDotNet@2
displayName: Install .NET Core SDK displayName: Install .NET Core SDK
inputs: inputs: