X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fgen_travis_yml.php;h=0e4bba72905e06f9f9165e95bf42e1d3bca0fafe;hb=3cac1117aff69526530980b5fa0316e338234442;hp=0283920380250307204579ae6786a7e6c713fbf9;hpb=6bb2f2584faf986f1b0b764f69e760b69163f48c;p=m6w6%2Fext-propro diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php index 0283920..0e4bba7 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", "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