jqh před 5 roky
rodič
revize
d511f54f3b
3 změnil soubory, kde provedl 9 přidání a 8 odebrání
  1. 3 3
      .travis.yml
  2. 5 5
      tests/ChromeProcess.php
  3. 1 0
      tests/DuskTestCase.php

+ 3 - 3
.travis.yml

@@ -35,12 +35,12 @@ 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 –-no-sandbox --remote-debugging-port=9515 http://127.0.0.1 &
   - chmod 777 ./tests/resources/drivers/chromedriver-linux
-  - ./tests/resources/drivers/chromedriver-linux --whitelisted-ips –-no-sandbox --disable-gpu --remote-debugging-port=9515 http://127.0.0.1 &
+#  - ./tests/resources/drivers/chromedriver-linux --whitelisted-ips --disable-dev-shm-usage –-no-sandbox --disable-gpu --remote-debugging-port=9515 http://127.0.0.1 &
+  - google-chrome-stable --whitelisted-ips --disable-dev-shm-usage –-no-sandbox --disable-gpu --remote-debugging-port=9515 http://127.0.0.1 &
   - php artisan serve &
 
 script:

+ 5 - 5
tests/ChromeProcess.php

@@ -13,10 +13,10 @@ class ChromeProcess extends BaseChromeProcess
         if ($this->onWindows()) {
             $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');
-        }
+        //elseif ($this->onMac()) {
+        //    $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-mac');
+        //} else {
+        //    $this->driver = realpath(__DIR__.'/resources/drivers/chromedriver-linux');
+        //}
     }
 }

+ 1 - 0
tests/DuskTestCase.php

@@ -85,6 +85,7 @@ abstract class DuskTestCase extends BaseTestCase
             '--headless',
             '--window-size=1920,1080',
             '--whitelisted-ips',
+            '--disable-dev-shm-usage',
         ]);
 
         return RemoteWebDriver::create(