X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=scripts%2Fgen_travis_yml.php;h=2868592c39ce5095237620ed0bc9bab01f5cc7c6;hb=f377b7c11ae28b9c69cecd53ac2e6633fc5140b2;hp=77d3a0f9e22fbd31956d63de15e6a4c6feff6979;hpb=dfa10326810379bb33800742e3e4a3ac789ae4af;p=m6w6%2Fext-pq diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php index 77d3a0f..2868592 100755 --- a/scripts/gen_travis_yml.php +++ b/scripts/gen_travis_yml.php @@ -1,24 +1,22 @@ #!/usr/bin/env php # autogenerated file; do not edit language: c -sudo: false addons: - postgresql: 9.4 + postgresql: 10 apt: packages: - - php5-cli + - php-cli - php-pear - valgrind -compiler: - - gcc - - clang - cache: directories: - $HOME/cache - + +before_cache: + - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete + env: global: - PQ_DSN="postgres://postgres@localhost/test" @@ -26,12 +24,17 @@ env: ["7.0", "7.1", "master"], + "PHP" => ["7.0", "7.1", "7.2", "7.3", "7.4"], "enable_debug" => "yes", "enable_maintainer_zts" => "yes", "enable_json" => "yes", +], [ + "PHP" => ["master"], + "enable_debug" => "yes", + "enable_zts" => "yes", + "enable_json" => "yes", ], [ "PHP" => $cur, "enable_json" => "no", @@ -39,7 +42,7 @@ $env = $gen([ "PHP" => $cur, "enable_json" => "yes", "enable_debug", - "enable_maintainer_zts" + "enable_zts" ], [ "PHP" => $cur, "enable_json" => "yes", @@ -52,11 +55,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: