X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=scripts%2Fgen_travis_yml.php;h=b2f863f0396b01d93a05740b5a58f04e7d0ffe56;hp=77d3a0f9e22fbd31956d63de15e6a4c6feff6979;hb=c42b1975b4e9de8abac3a1b20985d0851a85865f;hpb=dfa10326810379bb33800742e3e4a3ac789ae4af diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php index 77d3a0f..b2f863f 100755 --- a/scripts/gen_travis_yml.php +++ b/scripts/gen_travis_yml.php @@ -18,7 +18,10 @@ compiler: cache: directories: - $HOME/cache - + +before_cache: + - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete + env: global: - PQ_DSN="postgres://postgres@localhost/test" @@ -28,7 +31,7 @@ env: $gen = include "./travis/pecl/gen-matrix.php"; $cur = "7.2"; $env = $gen([ - "PHP" => ["7.0", "7.1", "master"], + "PHP" => ["7.0", "7.1", "7.3", "master"], "enable_debug" => "yes", "enable_maintainer_zts" => "yes", "enable_json" => "yes", @@ -56,7 +59,12 @@ foreach ($env as $g) { ?> 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: