Skip to content

Commit

Permalink
Upgrade selenium version to 3.0.1, add support for Firefox 50 and gec…
Browse files Browse the repository at this point in the history
…kodriver.
  • Loading branch information
paulbriton committed Nov 25, 2016
1 parent aebd06f commit 42d4b86
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .ci/common_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

SELENIUM_HUB_URL='http://127.0.0.1:4444'
SELENIUM_JAR=/usr/share/selenium/selenium-server-standalone.jar
SELENIUM_DOWNLOAD_URL=http://selenium-release.storage.googleapis.com/2.48/selenium-server-standalone-2.48.2.jar
SELENIUM_DOWNLOAD_URL=http://selenium-release.storage.googleapis.com/3.0/selenium-server-standalone-3.0.1.jar
GECKODRIVER_DOWNLOAD_URL=https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz
GECKODRIVER_TAR=/tmp/geckodriver.tar.gz
PHP_VERSION=$(php -v)
6 changes: 6 additions & 0 deletions .ci/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ if [ ! -f "$SELENIUM_JAR" ]; then
sudo mkdir -p $(dirname "$SELENIUM_JAR")
sudo wget -nv -O "$SELENIUM_JAR" "$SELENIUM_DOWNLOAD_URL"
fi

if [ ! -f "/usr/local/bin/geckodriver" ]; then
echo "Downloading geckodriver"
sudo wget -nv -O "$GECKODRIVER_TAR" "$GECKODRIVER_DOWNLOAD_URL"
sudo tar -xvf "$GECKODRIVER_TAR" -C "/usr/local/bin/"
fi
9 changes: 7 additions & 2 deletions .ci/vagrant_pre_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ sed -i "1ideb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restr
sed -i "1ideb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse" /etc/apt/sources.list
sed -i "1ideb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse" /etc/apt/sources.list

apt-get install python-software-properties
apt-get update

apt-get install software-properties-common -y
apt-get install python-software-properties -y

apt-add-repository ppa:ondrej/php5-5.6 -y
apt-add-repository ppa:openjdk-r/ppa -y

apt-get update

# installing xvfb, java and php
apt-get install xvfb openjdk-7-jre-headless php5-cli php5-curl php5-xdebug ncurses-term unzip xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic vim -y --no-install-recommends
apt-get install xvfb openjdk-8-jre-headless php5-cli php5-curl php5-xdebug ncurses-term unzip xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic vim -y --no-install-recommends

0 comments on commit 42d4b86

Please sign in to comment.