Skip to content

Commit

Permalink
Make it possible to pin the chromedriver version.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsnopek committed May 22, 2017
1 parent e5efcdc commit 55ec85f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions functions/behat.sh
Expand Up @@ -126,9 +126,13 @@ function drupal_ti_ensure_chrome_driver() {
drupal_ti_ensure_bin_dir
cd $DRUPAL_TI_BIN_DIR

# @todo Make version configurable.
CHROMEDRIVER_VERSION=$(wget http://chromedriver.storage.googleapis.com/LATEST_RELEASE -qO-)
wget http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip
# @todo Move to defaults API.
if [ -z "$DRUPAL_TI_BEHAT_CHROMEDRIVER_VERSION" ]
then
DRUPAL_TI_BEHAT_CHROMEDRIVER_VERSION=$(wget http://chromedriver.storage.googleapis.com/LATEST_RELEASE -qO-)
fi

wget http://chromedriver.storage.googleapis.com/$DRUPAL_TI_BEHAT_CHROMEDRIVER_VERSION/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
rm -f chromedriver_linux64.zip
chmod a+x chromedriver
Expand Down

0 comments on commit 55ec85f

Please sign in to comment.