X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-apfd;a=blobdiff_plain;f=gen_travis_yml.php;h=683e46e75970d6616945ee948a6f22571cc9c35c;hp=903ed093efe24329da76553af2d2a918e9baac75;hb=c890a6eec0d636900be67cb2d78cf310b5aaab0d;hpb=c13599acd4d22b448927bfc319a1e297c574089e diff --git a/gen_travis_yml.php b/gen_travis_yml.php index 903ed09..683e46e 100755 --- a/gen_travis_yml.php +++ b/gen_travis_yml.php @@ -1,34 +1,59 @@ #!/usr/bin/env php # autogenerated file; do not edit -sudo: false language: c addons: apt: packages: - - php5-cli + - php-cli - php-pear + - valgrind env: matrix: ["5.4", "5.5", "5.6", "7.0", "master"], + "PHP" => ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4"], + "enable_debug" => "yes", + "enable_maintainer_zts" => "yes", +],[ + "PHP" => ["master"], + "enable_debug" => "yes", + "enable_zts" => "yes", +], [ + "PHP" => $cur, "enable_debug", - "enable_maintainer_zts", + "enable_zts" +], [ + "CFLAGS" => "'-O0 -g --coverage'", + "CXXFLAGS" => "'-O0 -g --coverage'", + "PHP" => $cur, ]); -foreach ($env as $e) { - printf(" - %s\n", $e); +foreach ($env as $grp) { + foreach ($grp as $e) { + printf(" - %s\n", $e); + } } ?> -before_script: +cache: + directories: + - $HOME/cache + +before_cache: + - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete + +install: - make -f travis/pecl/Makefile php - - make -f travis/pecl/Makefile ext PECL=apfd script: + - make -f travis/pecl/Makefile ext PECL=apfd - make -f travis/pecl/Makefile test +after_success: + - test -n "$CFLAGS" && cd .libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy +