X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-propro;a=blobdiff_plain;f=scripts%2Fgen_travis_yml.php;h=68bdd7cc8608470f670434abf5de32e20d9ff598;hp=0283920380250307204579ae6786a7e6c713fbf9;hb=3d201bccaec75f72a14bd822f8b605303ba25873;hpb=0ef55616b66a3f554d89142944a9f684f3e78d65 diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php index 0283920..68bdd7c 100755 --- a/scripts/gen_travis_yml.php +++ b/scripts/gen_travis_yml.php @@ -2,27 +2,52 @@ # autogenerated file; do not edit sudo: false language: c +dist: xenial addons: apt: packages: - - php5-cli + - php-cli - php-pear env: - matrix: ["master"], + "PHP" => ["7.0", "7.1", "7.2", "7.3", "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 +57,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