language: php

php:
  - 7.0
  - 7.1

cache:
  directories:
  - vendor
  
before_script:
  - cp .env.testing .env
  - echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
  - mysql -e 'create database orgmanager_test;'
  - travis_retry composer self-update
  - travis_retry composer update --no-interaction --prefer-source
  - php artisan key:generate
  - php artisan migrate

script:
  - phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

language: php

php:
  - 7.0
  - 7.1

cache:
  directories:
  - vendor

notifications:
  email: false

before_script:
  - cp .env.testing .env
  - echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
  - mysql -e 'create database orgmanager_test;'
  - travis_retry composer self-update
  - travis_retry composer update --no-interaction --prefer-source
  - php artisan key:generate
  - php artisan migrate

script:
  - phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

Disable that annoying Travis emails
:construction_worker: Disable that annoying Travis emails
