Skip to content

grab the lastest geckodriver in the travis install script - #3343

Merged
lukeis merged 1 commit into
SeleniumHQ:masterfrom
lmtierney:latest-gecko
Jan 9, 2017
Merged

grab the lastest geckodriver in the travis install script#3343
lukeis merged 1 commit into
SeleniumHQ:masterfrom
lmtierney:latest-gecko

Conversation

@lmtierney

Copy link
Copy Markdown
Member

@lukeis

lukeis commented Jan 9, 2017

Copy link
Copy Markdown
Member

i like it... except since the json blob from the github api contains the url of the thing we want, why not get it instead of guessing at the name, let's assume "linux64" will remain constant.

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'];"

@lmtierney

Copy link
Copy Markdown
Member Author

updated

@lukeis
lukeis merged commit 82587ea into SeleniumHQ:master Jan 9, 2017
@lmtierney
lmtierney deleted the latest-gecko branch January 26, 2017 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants