Skip to content

Commit 82587ea

Browse files
lmtierneylukeis
authored andcommitted
use lastest geckodriver for travis (#3343)
1 parent 1e07a85 commit 82587ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/travis/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ if [[ ! -z $CHROME ]]; then
1313
fi
1414

1515
if [[ ! -z $MARIONETTE ]]; then
16-
export GECKODRIVER_VERSION=v0.12.0
17-
curl -L -o geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/${GECKODRIVER_VERSION}/geckodriver-${GECKODRIVER_VERSION}-linux64.tar.gz
16+
export GECKODRIVER_DOWNLOAD=`curl -s 'https://api.github.com/repos/mozilla/geckodriver/releases/latest' | python -c "import sys, json; r = json.load(sys.stdin); print [a for a in r['assets'] if 'linux64' in a['name']][0]['browser_download_url'];"`
17+
curl -L -o geckodriver.tar.gz $GECKODRIVER_DOWNLOAD
1818
gunzip -c geckodriver.tar.gz | tar xopf -
1919
chmod +x geckodriver && sudo mv geckodriver /usr/local/bin
2020
fi

0 commit comments

Comments
 (0)