forked from madewithlove/illuminate-psr-cache-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (24 loc) · 863 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
services:
- memcached
matrix:
include:
- php: 7.1
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.1
- php: 7.2
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.2
- php: 7.3
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.3
env: COLLECT_COVERAGE="--coverage-clover build/coverage.clover"
before_script:
- echo 'extension="memcached.so"' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/memcached.ini
- travis_retry composer self-update
- travis_retry composer update --no-interaction ${COMPOSER_FLAGS}
script:
- vendor/bin/phpunit ${COLLECT_COVERAGE}
after_script:
- if [[ $COLLECT_COVERAGE ]]; then travis_retry wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ $COLLECT_COVERAGE ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.clover; fi