sudo: required

os:
  - linux

language: php

php:
  - '7.1'

addons:
  chrome: stable

install:
  - composer self-update
  - cp .env.travis .env
  - pear install pear/PHP_CodeSniffer
  - travis_retry composer install --no-interaction --prefer-dist --no-suggest
  - phpenv rehash

before_script:
  - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
  - php artisan serve &

script:
  - vendor/bin/phpunit --coverage-clover clover.xml
  - php artisan dusk
  - phpcs --ignore=app/Http/Controllers/Auth,app/Http/Controllers/Controller.php app/Http/Controllers

after_script:
  - php vendor/bin/codacycoverage clover clover.xml

sudo: required

os:
  - linux

language: php

php:
  - '7.1'

addons:
  chrome: stable

install:
  - composer self-update
  - cp .env.travis .env
  - travis_retry composer install --no-interaction --prefer-dist --no-suggest
  - phpenv rehash

before_script:
  - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
  - php artisan serve &

script:
  - vendor/bin/phpunit --coverage-clover clover.xml
  - php artisan dusk

after_script:
  - php vendor/bin/codacycoverage clover clover.xml

Remove php code sniffer from CI evaluation. May reintroduce the codesniffer linting in the future, but rather than attempting to force-fit the linter to avoid unnecessary and complicating docblock addition it makes more sense to offload the linting to the CI integrated codacy tooling based on configured php code sniffer and php mess detector.
Remove php code sniffer from CI evaluation. May reintroduce the codesniffer linting in the future, but rather than attempting to force-fit the linter to avoid unnecessary and complicating docblock addition it makes more sense to offload the linting to the CI integrated codacy tooling based on configured php code sniffer and php mess detector.
