-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
29 lines (22 loc) · 965 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
language: php
cache:
directories:
- $HOME/.composer/cache
php:
- '7.4'
matrix:
fast_finish: true
include:
- php: '7.4'
env:
- SYMFONY_VERSION='^4.4'
- php: '7.4'
before_install:
- sh -c 'echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini'
- composer self-update
- if [ "$SYMFONY_VERSION" != "" ]; then composer config extra.symfony.require "$SYMFONY_VERSION"; fi
install: composer config "platform.ext-mongo" "1.6.16" && composer update $COMPOSER_FLAGS --prefer-dist --no-progress
script: if [[ "$TRAVIS_PHP_VERSION" == "7.4" && -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