forked from EFForg/privacybadger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_travis.sh
More file actions
executable file
·16 lines (13 loc) · 965 Bytes
/
setup_travis.sh
File metadata and controls
executable file
·16 lines (13 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# Install the latest version of the chromedriver
chromedriver_latest_version=$(wget https://chromedriver.storage.googleapis.com/LATEST_RELEASE -q -O -)
wget -O /tmp/chromedriver.zip "https://chromedriver.storage.googleapis.com/${chromedriver_latest_version}/chromedriver_linux64.zip"
sudo unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
sudo chmod a+x /usr/local/bin/chromedriver
# Install the latest version of geckodriver
geckodriver_latest_version=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | grep tag_name | cut -d '"' -f 4)
wget -O /tmp/geckodriver.tar.gz "https://github.com/mozilla/geckodriver/releases/download/${geckodriver_latest_version}/geckodriver-${geckodriver_latest_version}-linux64.tar.gz"
sudo tar -xvf /tmp/geckodriver.tar.gz -C /usr/local/bin/
sudo chmod a+x /usr/local/bin/geckodriver
# Set the path to the browser binary we want to test against
export BROWSER_BIN=$(which "$BROWSER")