2017-06-16 06:07:39 +02:00
|
|
|
language: php
|
2017-06-16 06:03:22 +02:00
|
|
|
dist: trusty
|
|
|
|
php:
|
2017-12-05 16:26:29 +01:00
|
|
|
- 7.2
|
2017-06-16 07:29:19 +02:00
|
|
|
sudo: false
|
2017-08-13 21:56:47 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
2017-06-16 06:03:22 +02:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
before_install:
|
2017-06-16 06:07:39 +02:00
|
|
|
- mysql -e 'CREATE DATABASE IF NOT EXISTS travis;'
|
2017-06-16 06:03:22 +02:00
|
|
|
before_script:
|
2017-11-25 18:59:11 +01:00
|
|
|
- echo 'opcache.enable_cli=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
2017-06-16 06:03:22 +02:00
|
|
|
- cp .env.travis .env
|
2018-02-10 21:57:19 +01:00
|
|
|
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
|
2017-11-25 18:59:11 +01:00
|
|
|
- php artisan migrate --seed
|
2017-06-16 06:03:22 +02:00
|
|
|
script:
|
2017-06-16 07:50:10 +02:00
|
|
|
- vendor/bin/phpunit --coverage-clover coverage.xml
|
2017-06-16 06:07:39 +02:00
|
|
|
notifications:
|
|
|
|
email: false
|
2017-09-01 02:30:10 +02:00
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- https://misc.schrej.net/travistodiscord/pterodev.php
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
on_error: always
|
|
|
|
on_cancel: always
|
|
|
|
on_start: never
|
2017-06-16 06:23:14 +02:00
|
|
|
after_success:
|
2017-07-24 01:05:03 +02:00
|
|
|
- bash <(curl -s https://codecov.io/bash)
|