language: php

services:
  - mysql

php:
  - 5.6
  - 7.0

sudo: required

before_install:
  - phpenv config-rm xdebug.ini
  - composer install --dev --prefer-source --no-interaction
  - mysql -e 'create database friendships_test;'


script:
- cp src/database/migrations/create_friendships_table.php vendor/laravel/laravel/database/migrations/2015_11_19_053825_create_friendships_table.php
- yes | cp src/database/migrations/create_friendships_groups_table.php vendor/laravel/laravel/database/migrations/2015_11_19_053826_create_friendships_groups_table.php
- yes | cp tests/config/friendships.php vendor/laravel/laravel/config/friendships.php
- yes | cp tests/Stub_User.php vendor/laravel/laravel/app/User.php
- cd vendor/laravel/laravel
- composer install --dev --prefer-source --no-interaction
- php artisan migrate
- cd -
- vendor/bin/phpunit tests
language: php

services:
  - mysql

php:
  - 5.6
  - 7.0

sudo: required

before_install:
  - phpenv config-rm xdebug.ini
  - composer install --dev --prefer-source --no-interaction
  - mysql -e 'create database friendships_test;'


script:
- cp src/database/migrations/create_friendships_table.php vendor/laravel/laravel/database/migrations/2015_11_19_053825_create_friendships_table.php
- yes | cp src/database/migrations/create_friendships_groups_table.php vendor/laravel/laravel/database/migrations/2015_11_19_053826_create_friendships_groups_table.php
- yes | cp tests/config/friendships.php vendor/laravel/laravel/config/friendships.php
- yes | cp tests/Stub_User.php vendor/laravel/laravel/app/User.php
- cd vendor/laravel/laravel
- composer install --dev --prefer-source --no-interaction
- php artisan migrate
- cd -
- phpenv config-add xdebug.ini
- vendor/bin/phpunit --coverage-clover=coverage.clover

after_install:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
Enable code coverage report and send to scrutinizer-ci
Enable code coverage report and send to scrutinizer-ci
