X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-propro;a=blobdiff_plain;f=scripts%2Fgen_travis_yml.php;h=c65f24fc8e45f5a2a1ff078c47bacec5857fb5e0;hp=0283920380250307204579ae6786a7e6c713fbf9;hb=657edc55178fa8da1d4fdf8e27801dc74d3208fa;hpb=d06440394c6b84fe00ae597b48210aea2abbce82 diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php index 0283920..c65f24f 100755 --- a/scripts/gen_travis_yml.php +++ b/scripts/gen_travis_yml.php @@ -10,19 +10,43 @@ addons: - php-pear env: - matrix: ["master"], + "PHP" => ["7.0", "7.1", "7.2", "master"], + "enable_debug" => "yes", + "enable_maintainer_zts" => "yes", + "enable_json" => "yes", +], [ + "PHP" => $cur, + "enable_json" => "yes", "enable_debug", - "enable_maintainer_zts", + "enable_maintainer_zts" +], [ + "PHP" => $cur, + "enable_json" => "yes", + "CFLAGS" => "'-O0 -g --coverage'", + "CXXFLAGS" => "'-O0 -g --coverage'", ]); -foreach ($env as $e) { - printf(" - %s\n", $e); + +foreach ($env as $g) { + foreach ($g as $e) { + printf(" - %s\n", $e); + } } +?> +matrix: + fast_finish: true + allow_failures: + before_script: @@ -32,3 +56,5 @@ before_script: script: - make -f travis/pecl/Makefile test +after_success: + - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy