language: php

php:
  - "7.2"

cache:
  directories:
    - src/vendor
    - src/node_modules

services:
  - mysql

before_script:
  - cd src
  - cp .env.ci .env
  - composer install --no-interaction
  - npm install
  - npm run production
  - php artisan key:generate
  - php artisan migrate

script:
  - ./vendor/bin/phpstan analyse -l max app config tests bootstrap --no-interaction --no-progress
  - ./vendor/bin/phpunit --coverage-clover=coverage.xml

after_success:
  - bash <(curl -s https://codecov.io/bash)
  - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
  - chmod +x send.sh
  - ./send.sh success $WEBHOOK_URL

after_failure:
  - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
  - chmod +x send.sh
  - ./send.sh failure $WEBHOOK_URL
language: php

php:
  - "7.2"

cache:
  directories:
    - src/vendor
    - src/node_modules

services:
  - mysql

before_script:
  - cd src
  - cp .env.ci .env
  - composer install --no-interaction
  - npm install
  - npm run production
  - php artisan key:generate
  - php artisan migrate

script:
  - ./vendor/bin/phpstan analyse -l max app config bootstrap --no-interaction --no-progress
  - ./vendor/bin/phpunit --coverage-clover=coverage.xml

after_success:
  - bash <(curl -s https://codecov.io/bash)
  - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
  - chmod +x send.sh
  - ./send.sh success $WEBHOOK_URL

after_failure:
  - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
  - chmod +x send.sh
  - ./send.sh failure $WEBHOOK_URL
Remove tests from PHP analysis
Remove tests from PHP analysis
