-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (34 loc) · 957 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
33
34
35
36
37
38
39
40
41
42
43
44
language: php
os: linux
dist: bionic
notifications:
email: false
cache:
directories:
- $HOME/.composer/cache
php:
- 8.0.1
- nightly
jobs:
fast_finish: true
allow_failures:
- php: nightly
services:
- redis
- memcached
env:
- REDIS_SERVER_HOST=127.0.0.1 REDIS_SERVER_PORT=6379 MEMCACHED_POOL=[["127.0.0.1",11211]]
before_script:
- echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension=redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- pecl install igbinary
- pecl install msgpack
# travis loads xdebug 3 in PHP 7.3+ which mess up the build
- phpenv config-rm xdebug.ini
install:
- composer update -o --prefer-source --no-interaction
script:
- vendor/bin/phpunit --coverage-clover build/clover.xml
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/clover.xml