language: php

php:
  - 7.0.21
  - 7.1
  - 7.2

env:
  global:
    - setup=basic

matrix:
  allow_failures:
    - php: 7.2
  fast_finish: true

before_install:
  - if [[ $TRAVIS_PHP_VERSION != 7.2 ]] ; then phpenv config-rm xdebug.ini; fi
  - mv .env.example .env

install:
  - composer install

before_script:
  - php artisan canvas:publish:assets -y
  - php artisan canvas:publish:config -y
  - php artisan key:generate
  - echo '1485524707' > storage/canvas_installed.lock

script:
  - vendor/bin/phpunit
dist: trusty

sudo: required
language: php

php:
  - 7.0.21
  - 7.1
  - 7.2

env:
  global:
    - setup=basic

matrix:
  allow_failures:
    - php: 7.2
  fast_finish: true

before_install:
  - if [[ $TRAVIS_PHP_VERSION != 7.2 ]] ; then phpenv config-rm xdebug.ini; fi
  - mv .env.example .env

install:
  - travis_retry composer install --no-interaction

before_script:
  - php artisan canvas:publish:assets -y
  - php artisan canvas:publish:config -y
  - php artisan key:generate
  - echo '1485524707' > storage/canvas_installed.lock
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - ./vendor/laravel/dusk/bin/chromedriver-linux &
  - cp .env.testing .env
  - php artisan serve &

script:
  - vendor/bin/phpunit
  - php artisan dusk
Integrate Laravel Dusk with TravisCI
Integrate Laravel Dusk with TravisCI
