Browse Source

travis run dusk

jqh 5 years ago
parent
commit
1ca0b00072
2 changed files with 3 additions and 2 deletions
  1. 2 2
      .travis.yml
  2. 1 0
      tests/DuskTestCase.php

+ 2 - 2
.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 –-no-sandbox --disable-gpu --remote-debugging-port=9515 http://127.0.0.1 &
+  - ./tests/resources/drivers/chromedriver-linux --whitelisted-ips –-no-sandbox --disable-gpu --remote-debugging-port=9515 http://127.0.0.1 &
   - php artisan serve &
 
 script:

+ 1 - 0
tests/DuskTestCase.php

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