-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
32 lines (25 loc) · 930 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: php
cache:
directories:
- $HOME/.composer/cache
php:
- 7.2
- 7.3
- 7.4
matrix:
fast_finish: true
include:
- php: 7.2
env:
- SYMFONY_VERSION='3.4.*'
- php: 7.3
env:
- SYMFONY_VERSION='4.4.*'
before_install:
- composer self-update
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/flex; composer config extra.symfony.require "$SYMFONY_VERSION"; fi
install: composer update $COMPOSER_FLAGS --prefer-dist --no-progress
script: if [[ "$TRAVIS_PHP_VERSION" == "7.2" && -z "$SYMFONY_VERSION" && -z "$COMPOSER_FLAGS" ]]; then vendor/bin/phpunit --coverage-clover=coverage.clover; else vendor/bin/phpunit; fi
after_success:
- wget https://scrutinizer-ci.com/ocular.phar
- if [ -f coverage.clover ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi