From d0cebd6e7787c086fce138b177d4db48eb8e1c96 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sun, 13 Aug 2017 09:33:12 +0200 Subject: [PATCH] [fix] fix selenium tests --- .travis.yml | 5 ++++- manage.sh | 2 +- requirements-dev.txt | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1eb6573f2..8ddbc7583 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,10 +14,13 @@ before_install: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" - npm install less less-plugin-clean-css grunt-cli + - export PATH=`pwd`/node_modules/.bin:$PATH + - ls -l $VIRTUAL_ENV + - ls -l $VIRTUAL_ENV/bin - ( cd searx/static/themes/oscar;npm install; cd - ) - ( cd searx/static/themes/simple;npm install; cd - ) - mkdir -p ~/drivers; export PATH=~/drivers:$PATH; - - GECKODRIVER_URL="https://github.com/mozilla/geckodriver/releases/download/v0.14.0/geckodriver-v0.14.0-linux64.tar.gz"; + - GECKODRIVER_URL="https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz"; - FILE=`mktemp`; wget "$GECKODRIVER_URL" -qO $FILE && tar xz -C ~/drivers -f $FILE geckodriver; rm $FILE; chmod 777 ~/drivers/geckodriver; install: - ./manage.sh update_dev_packages diff --git a/manage.sh b/manage.sh index 681f3a975..8408e5678 100755 --- a/manage.sh +++ b/manage.sh @@ -22,7 +22,7 @@ check_geckodriver() { if [ -z $NOTFOUND ]; then return fi - GECKODRIVER_VERSION="v0.14.0" + GECKODRIVER_VERSION="v0.18.0" PLATFORM=`python -c "import platform; print platform.system().lower(), platform.architecture()[0]"` case $PLATFORM in "linux 32bit" | "linux2 32bit") ARCH="linux32";; diff --git a/requirements-dev.txt b/requirements-dev.txt index 691a1e7ba..8c2b72305 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -7,4 +7,4 @@ splinter==0.7.5 transifex-client==0.12.2 unittest2==1.1.0 zope.testrunner==4.5.1 -selenium==3.0.1 +selenium==3.5.0