25 lines
535 B
YAML
25 lines
535 B
YAML
language: php
|
|
dist: trusty
|
|
php:
|
|
- '7.0'
|
|
- '7.1'
|
|
sudo: false
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|
|
services:
|
|
- mysql
|
|
before_install:
|
|
- mysql -e 'CREATE DATABASE IF NOT EXISTS travis;'
|
|
before_script:
|
|
- phpenv config-rm xdebug.ini
|
|
- cp .env.travis .env
|
|
- composer install --no-interaction --prefer-dist --no-suggest --no-scripts --verbose
|
|
- php artisan migrate -v
|
|
- php artisan db:seed -v
|
|
script:
|
|
- vendor/bin/phpunit --coverage-clover coverage.xml
|
|
notifications:
|
|
email: false
|
|
after_success:
|
|
- codecov
|