Browse Source

travis run dusk

jqh 5 years ago
parent
commit
d02757dd2d
2 changed files with 9 additions and 8 deletions
  1. 4 3
      .travis.yml
  2. 5 5
      tests/ChromeProcess.php

+ 4 - 3
.travis.yml

@@ -35,11 +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:
-  - chmod 777 ./tests/resources/drivers/chromedriver-linux
-#  - google-chrome --whitelisted-ips --headless --disable-gpu --remote-debugging-port=9515 http://127.0.0.1 &
+ # - chmod 777 ./tests/resources/drivers/chromedriver-linux
+  - chmod 777 ./vendor/laravel/dusk/bin/chromedriver-linux
+  - ./vendor/laravel/dusk/bin/chromedriver-linux & --whitelisted-ips --headless --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');
+        //}
     }
 }