X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=scripts%2Fgen_travis_yml.php;fp=scripts%2Fgen_travis_yml.php;h=2cad77a92e4c241615684ca599485eaebb978b21;hp=054999692b1c77750b27e6148194bd7e08304dce;hb=27bf5fe76e6b7eba9617e2a1119ef4f34580b134;hpb=e5d094d5e60f1d94e42e4fb90f257181ec7c1fe4 diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php index 0549996..2cad77a 100755 --- a/scripts/gen_travis_yml.php +++ b/scripts/gen_travis_yml.php @@ -48,7 +48,8 @@ $env = $gen([ ], [ // everything enabled for current, switching debug/zts "PHP" => $cur, - "PECL_EVENT" => "yes", + "PECLs" => "event", // for tests/client029.phpt + "enable_sockets" => "yes", // needed by pecl/event "enable_debug", "enable_maintainer_zts", "enable_json" => "yes", @@ -59,6 +60,8 @@ $env = $gen([ "CFLAGS" => "'-O0 -g --coverage'", "CXXFLAGS" => "'-O0 -g --coverage'", "PHP" => $cur, + "PECLs" => "event", // for tests/client029.phpt + "enable_sockets" => "yes", // needed by pecl/event "enable_json" => "yes", "enable_hash" => "yes", "enable_iconv" => "yes", @@ -98,8 +101,12 @@ install: - make -f travis/pecl/Makefile pecl PECL=ext-raphf.git:raphf:master - make -f travis/pecl/Makefile pecl PECL=ext-propro.git:propro:master - | - if test "$PECL_EVENT" = "yes"; then \ - make -f travis/pecl/Makefile pecl PECL=event; \ + if test -n "$PECLs"; then \ + IFS=$','; \ + for pecl in $PECLs; do \ + make -f travis/pecl/Makefile pecl PECL=$pecl; \ + done; \ + unset IFS; \ fi script: