X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-propro;a=blobdiff_plain;f=scripts%2Fgen_travis_yml.php;h=8e9f951831dffbd82dd2dc14231d045cc66aed2d;hp=3f0688840e7fcbbd42c45b764bcf826d6e8adf7f;hb=HEAD;hpb=c17453da786271a74a518ae5a8ec203d09145593 diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php index 3f06888..8e9f951 100755 --- a/scripts/gen_travis_yml.php +++ b/scripts/gen_travis_yml.php @@ -1,28 +1,39 @@ #!/usr/bin/env php # autogenerated file; do not edit -sudo: false language: c addons: apt: packages: - - php5-cli + - php-cli - php-pear env: - matrix: ["7.0", "7.1", "master"], + "PHP" => ["7.0", "7.1", "7.2", "7.3"], + "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); + } +} ?> before_script: @@ -31,3 +42,6 @@ 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