1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 20:17:45 +01:00

[fix] fix selenium tests

This commit is contained in:
Alexandre Flament 2017-08-13 09:33:12 +02:00
parent 1012d63885
commit d0cebd6e77
3 changed files with 6 additions and 3 deletions

View File

@ -14,10 +14,13 @@ before_install:
- "export DISPLAY=:99.0" - "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start" - "sh -e /etc/init.d/xvfb start"
- npm install less less-plugin-clean-css grunt-cli - 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/oscar;npm install; cd - )
- ( cd searx/static/themes/simple;npm install; cd - ) - ( cd searx/static/themes/simple;npm install; cd - )
- mkdir -p ~/drivers; export PATH=~/drivers:$PATH; - 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; - FILE=`mktemp`; wget "$GECKODRIVER_URL" -qO $FILE && tar xz -C ~/drivers -f $FILE geckodriver; rm $FILE; chmod 777 ~/drivers/geckodriver;
install: install:
- ./manage.sh update_dev_packages - ./manage.sh update_dev_packages

View File

@ -22,7 +22,7 @@ check_geckodriver() {
if [ -z $NOTFOUND ]; then if [ -z $NOTFOUND ]; then
return return
fi fi
GECKODRIVER_VERSION="v0.14.0" GECKODRIVER_VERSION="v0.18.0"
PLATFORM=`python -c "import platform; print platform.system().lower(), platform.architecture()[0]"` PLATFORM=`python -c "import platform; print platform.system().lower(), platform.architecture()[0]"`
case $PLATFORM in case $PLATFORM in
"linux 32bit" | "linux2 32bit") ARCH="linux32";; "linux 32bit" | "linux2 32bit") ARCH="linux32";;

View File

@ -7,4 +7,4 @@ splinter==0.7.5
transifex-client==0.12.2 transifex-client==0.12.2
unittest2==1.1.0 unittest2==1.1.0
zope.testrunner==4.5.1 zope.testrunner==4.5.1
selenium==3.0.1 selenium==3.5.0