Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 6628fde

Browse files
committed
potential fix for PHP 7.3 tests with ext-uopz patch
1 parent 917331d commit 6628fde

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.travis.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,50 @@ language: php
33
matrix:
44
include:
55
- php: 7.1
6+
env: PHP=71
67
env: LARAVEL=55
78
- php: 7.1
9+
env: PHP=71
810
env: LARAVEL=56
911
- php: 7.1
12+
env: PHP=71
1013
env: LARAVEL=57
1114
- php: 7.2
15+
env: PHP=72
1216
env: LARAVEL=55
1317
- php: 7.2
18+
env: PHP=72
1419
env: LARAVEL=56
1520
- php: 7.2
21+
env: PHP=72
1622
env: LARAVEL=57
1723
- php: 7.3
24+
env: PHP=73
1825
env: LARAVEL=55
1926
- php: 7.3
27+
env: PHP=73
2028
env: LARAVEL=56
2129
- php: 7.3
30+
env: PHP=73
2231
env: LARAVEL=57
2332

2433
services:
2534
- mysql
2635

2736
before_script:
28-
- pecl install uopz
37+
# Extensions: ext-uopz
38+
- if [ "$PHP" = "71" ] ; then pecl install https://pecl.php.net/get/uopz-5.0.2.tgz ; fi
39+
- if [ "$PHP" = "72" ] ; then pecl install https://pecl.php.net/get/uopz-5.0.2.tgz ; fi
40+
- if [ "$PHP" = "73" ] ; then wget -O $TRAVIS_BUILD_DIR/uopz-5.0.2.tgz https://pecl.php.net/get/uopz-5.0.2.tgz ; fi
41+
- if [ "$PHP" = "73" ] ; then tar xvf $TRAVIS_BUILD_DIR/uopz-5.0.2.tgz ; fi
42+
- if [ "$PHP" = "73" ] ; then mv $TRAVIS_BUILD_DIR/uopz-5.0.2 $TRAVIS_BUILD_DIR/ext-uopz ; fi
43+
- if [ "$PHP" = "73" ] ; then wget -O $TRAVIS_BUILD_DIR/ext-uopz/php73.patch https://gist.githubusercontent.com/cmb69/3060a552fc825497d066262ab31f3998/raw/428c0aee7d77b6c37ea3757bbc8b86cfc390d7ca/0001-Update-for-PHP-7.3.patch ; fi
44+
- if [ "$PHP" = "73" ] ; then cd $TRAVIS_BUILD_DIR/ext-uopz && patch -p1 < php73.patch && phpize && ./configure && make && make install ; fi
45+
# Tests: Code Climate
2946
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
3047
- chmod +x ./cc-test-reporter
3148
- ./cc-test-reporter before-build
49+
# Packages: Install
3250
- composer self-update
3351
- composer install --prefer-source --no-interaction
3452

0 commit comments

Comments
 (0)