-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
52 lines (43 loc) · 1.09 KB
/
.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
45
46
47
48
49
50
51
52
dist: focal
language: php
env:
global:
- SETUP=stable
matrix:
fast_finish: true
include:
- php: 7.4
- php: 8.0
#- php: 7.3
# env: SETUP=lowest
cache:
directories:
- $HOME/.composer/cache
services:
- redis-server
- mysql
before_install:
#- phpenv config-rm xdebug.ini || true
- printf "\n" | pecl install -f igbinary
# Install & Build Redis
- printf "\n" | pecl install -f --nobuild redis
- cd "$(pecl config-get temp_dir)/redis"
- phpize
- ./configure --enable-redis-igbinary
- make && make install
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- cd -
- travis_retry composer self-update
- mysql -e 'CREATE DATABASE forge;'
install:
- travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest
script:
- php --ri redis
- composer phpcs
- composer coverage-clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
notifications:
on_success: never
on_failure: always