Permalink
Browse files

Install Chrome before running tests.

  • Loading branch information...
mikaeljorhult committed Jan 31, 2017
1 parent 10ee3de commit 4a6430d80c149b27cf2e26895fcdf3398031649a
Showing with 8 additions and 4 deletions.
  1. +7 −3 .travis.yml
  2. +1 −1 tests/DuskTestCase.php
View
@@ -3,18 +3,22 @@ language: php
php:
- 7.0
-sudo: false
+dist: trusty
+sudo: required
install:
- travis_retry composer install --no-interaction --prefer-source
- cp .env.example .env # Create a new .env file
- php artisan key:generate # Generate application key
before_script:
+ - export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0 # Setup virtual screen
- sh -e /etc/init.d/xvfb start # Setup virtual screen
- - sleep 5 # Give xvfb time to start
- - nohup bash -c "./vendor/laravel/dusk/bin/chromedriver-linux 2>&1 &" # Manually start Chrome driver
+ - sudo apt-get update
+ - sudo apt-get install -y libappindicator1 fonts-liberation
+ - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
+ - sudo dpkg -i google-chrome*.deb
- php artisan serve & # Start server
- sleep 5 # Give Artisan time to start
View
@@ -18,7 +18,7 @@
*/
public static function prepare()
{
- //static::startChromeDriver();
+ static::startChromeDriver();
}
/**

0 comments on commit 4a6430d

Please sign in to comment.