2017-06-16 06:07:39 +02:00
|
|
|
language: php
|
2017-06-16 06:03:22 +02:00
|
|
|
dist: trusty
|
2018-07-01 02:55:41 +02:00
|
|
|
git:
|
|
|
|
depth: 3
|
|
|
|
quiet: true
|
2018-07-01 03:01:23 +02:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
|
|
|
- env: TEST_SUITE=Coverage
|
2018-07-01 02:55:41 +02:00
|
|
|
env:
|
2018-07-01 03:01:23 +02:00
|
|
|
matrix:
|
|
|
|
- TEST_SUITE=Unit
|
|
|
|
- TEST_SUITE=Coverage
|
|
|
|
- TEST_SUITE=Integration
|
2017-06-16 06:03:22 +02:00
|
|
|
php:
|
2020-04-18 04:18:44 +02:00
|
|
|
- 7.4
|
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-06-16 06:03:22 +02:00
|
|
|
script:
|
2018-07-01 03:01:23 +02:00
|
|
|
- if [ "$TEST_SUITE" = "Unit" ]; then vendor/bin/phpunit --bootstrap vendor/autoload.php tests/Unit; fi;
|
|
|
|
- if [ "$TEST_SUITE" = "Coverage" ]; then vendor/bin/phpunit --bootstrap vendor/autoload.php --coverage-clover coverage.xml tests/Unit; fi;
|
2018-07-01 02:55:41 +02:00
|
|
|
- if [ "$TEST_SUITE" = "Integration" ]; then vendor/bin/phpunit tests/Integration; fi;
|
2017-06-16 06:07:39 +02:00
|
|
|
notifications:
|
|
|
|
email: false
|
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)
|