25 lines
551 B
YAML
25 lines
551 B
YAML
language: php
|
|
dist: trusty
|
|
php:
|
|
- '7.0'
|
|
- '7.1'
|
|
sudo: false
|
|
cache: 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 --verbose
|
|
- php artisan migrate --seed -v
|
|
script:
|
|
- vendor/bin/phpunit --coverage-clover coverage.xml
|
|
notifications:
|
|
email: false
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash)
|