Преглед на файлове

[fix] fix selenium tests

Alexandre Flament преди 7 години
родител
ревизия
d0cebd6e77
променени са 3 файла, в които са добавени 6 реда и са изтрити 3 реда
  1. 4
    1
      .travis.yml
  2. 1
    1
      manage.sh
  3. 1
    1
      requirements-dev.txt

+ 4
- 1
.travis.yml Целия файл

@@ -14,10 +14,13 @@ before_install:
14 14
   - "export DISPLAY=:99.0"
15 15
   - "sh -e /etc/init.d/xvfb start"
16 16
   - npm install less less-plugin-clean-css grunt-cli
17
+  - export PATH=`pwd`/node_modules/.bin:$PATH
18
+  - ls -l $VIRTUAL_ENV
19
+  - ls -l $VIRTUAL_ENV/bin
17 20
   - ( cd searx/static/themes/oscar;npm install; cd - )
18 21
   - ( cd searx/static/themes/simple;npm install; cd - )
19 22
   - mkdir -p ~/drivers; export PATH=~/drivers:$PATH;
20
-  - GECKODRIVER_URL="https://github.com/mozilla/geckodriver/releases/download/v0.14.0/geckodriver-v0.14.0-linux64.tar.gz";
23
+  - GECKODRIVER_URL="https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz";
21 24
   - FILE=`mktemp`; wget "$GECKODRIVER_URL" -qO $FILE && tar xz -C ~/drivers -f $FILE geckodriver; rm $FILE; chmod 777 ~/drivers/geckodriver;
22 25
 install:
23 26
   - ./manage.sh update_dev_packages

+ 1
- 1
manage.sh Целия файл

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

+ 1
- 1
requirements-dev.txt Целия файл

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