File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 7474 displayName : PHP 8.0 ZTS
7575 phpVersion : ' 8.0'
7676 zts : true
77+ publishCoverage : true
7778
7879 - template : azure-template.yml
7980 parameters :
Original file line number Diff line number Diff line change @@ -19,10 +19,17 @@ function prefix {
1919}
2020
2121function build_ext {
22- local readonly version=$1 zts=$2 coverage=$2
22+ local readonly version=$1 zts=$2 coverage=$3
2323 local readonly prefix=$( prefix $1 $2 )
24+ local cflags= cxxflags= ldflags=
2425 " $prefix " /bin/phpize
25- ./configure --with-php-config=" $prefix /bin/php-config"
26+ if [[ $coverage == true ]]; then
27+ cflags=--coverage
28+ cxxflags=--coverage
29+ ldflags=--coverage
30+ fi
31+ CFLAGS=" $cflags " CXXFLAGS=" $cxxflags " LDFLAGS=" $ldflags " \
32+ ./configure --with-php-config=" $prefix /bin/php-config"
2633 make -j $JOBS
2734}
2835
You can’t perform that action at this time.
0 commit comments