浏览代码

travis run dusk

jqh 5 年之前
父节点
当前提交
755802478c
共有 4 个文件被更改,包括 3 次插入4 次删除
  1. 1 1
      .travis.yml
  2. 2 3
      tests/ChromeProcess.php
  3. 二进制
      tests/resources/drivers/chromedriver-linux
  4. 二进制
      tests/resources/drivers/chromedriver-mac

+ 1 - 1
.travis.yml

@@ -35,7 +35,7 @@ install:
   - php artisan admin:publish --force
   - php artisan admin:install
   - php artisan migrate:rollback
-  - php artisan dusk:chrome-driver
+#  - php artisan dusk:chrome-driver
 
 before_script:
   - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9515 http://localhost &

+ 2 - 3
tests/ChromeProcess.php

@@ -14,9 +14,8 @@ class ChromeProcess extends BaseChromeProcess
             $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-win.exe');
         } elseif ($this->onMac()) {
             $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-mac');
+        } else {
+            $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-linux');
         }
-        //else {
-        //    $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-linux');
-        //}
     }
 }

二进制
tests/resources/drivers/chromedriver-linux


二进制
tests/resources/drivers/chromedriver-mac