2017-06-16 04:07:39 +00:00
|
|
|
language: php
|
2017-06-16 04:03:22 +00:00
|
|
|
dist: trusty
|
|
|
|
php:
|
2017-06-16 04:07:39 +00:00
|
|
|
- '7.0'
|
|
|
|
- '7.1'
|
2017-06-16 05:29:19 +00:00
|
|
|
sudo: false
|
2017-06-16 04:03:22 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
before_install:
|
2017-06-16 04:07:39 +00:00
|
|
|
- mysql -e 'CREATE DATABASE IF NOT EXISTS travis;'
|
2017-06-16 04:03:22 +00:00
|
|
|
before_script:
|
|
|
|
- phpenv config-rm xdebug.ini
|
|
|
|
- cp .env.travis .env
|
2017-06-16 05:50:10 +00:00
|
|
|
- composer install --no-interaction --prefer-dist --no-suggest --no-scripts --verbose
|
2017-06-16 05:29:19 +00:00
|
|
|
- php artisan migrate -v
|
|
|
|
- php artisan db:seed -v
|
2017-06-16 04:03:22 +00:00
|
|
|
script:
|
2017-06-16 05:50:10 +00:00
|
|
|
- vendor/bin/phpunit --coverage-clover coverage.xml
|
2017-06-16 04:07:39 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|
2017-06-16 04:23:14 +00:00
|
|
|
after_success:
|
|
|
|
- codecov
|