X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=scripts%2Fgen_travis_yml.php;h=28eadfdffb889a780052827d671cae32ac8f2256;hp=8493aa65d35e25e1ed963a034856674a6174a868;hb=9dfcccaad554c8e3ddeb9d2635e2faf09425282e;hpb=aefbfa4e6ff7d68b01cca8b746b56c6570ffe576 diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php index 8493aa6..28eadfd 100755 --- a/scripts/gen_travis_yml.php +++ b/scripts/gen_travis_yml.php @@ -11,14 +11,13 @@ addons: - php-pear - valgrind -compiler: - - gcc - - clang - cache: directories: - - $HOME/build - + - $HOME/cache + +before_cache: + - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete + env: global: - PQ_DSN="postgres://postgres@localhost/test" @@ -26,9 +25,9 @@ env: ["7.0", "7.1", "master"], + "PHP" => ["7.0", "7.1", "7.2", "7.4", "master"], "enable_debug" => "yes", "enable_maintainer_zts" => "yes", "enable_json" => "yes", @@ -52,11 +51,27 @@ foreach ($env as $g) { printf(" - %s\n", $e); } } +?> +matrix: + fast_finish: true + allow_failures: + install: - - make -f travis/pecl/Makefile php + - | + if test "$PHP" = master; then \ + make -f travis/pecl/Makefile reconf; \ + make -f travis/pecl/Makefile pecl-rm pecl-clean PECL=raphf:raphf:2.0.0; \ + fi + - make -f travis/pecl/Makefile php || make -f travis/pecl/Makefile clean php - make -f travis/pecl/Makefile pecl PECL=raphf:raphf:2.0.0 before_script: