X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=scripts%2Fgen_travis_yml.php;fp=scripts%2Fgen_travis_yml.php;h=6513aefb5e97335faaf835bb54e63a5803f218bd;hp=0000000000000000000000000000000000000000;hb=b79edc51dfb0d34f172a7bb80e7b0f225d95a744;hpb=11075db860470f36eafe93257972e5f7db9632fa diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php new file mode 100755 index 0000000..6513aef --- /dev/null +++ b/scripts/gen_travis_yml.php @@ -0,0 +1,66 @@ +#!/usr/bin/env php +# autogenerated file; do not edit +language: c +sudo: false + +addons: + postgresql: 9.4 + apt: + packages: + - php5-cli + - php-pear + - valgrind + +compiler: + - gcc + - clang + +env: + global: + - PQ_DSN="postgres://postgres@localhost/test" + matrix: + ["7.0", "7.1", "master"], + "enable_debug" => "yes", + "enable_maintainer_zts" => "yes", + "enable_json" => "yes", +], [ + "PHP" => $cur, + "enable_json" => "no", +], [ + "PHP" => $cur, + "enable_json" => "yes", + "enable_debug", + "enable_maintainer_zts" +], [ + "PHP" => $cur, + "enable_json" => "yes", + "CFLAGS" => "'-O0 -g --coverage'", + "CXXFLAGS" => "'-O0 -g --coverage'", +]); + +foreach ($env as $g) { + foreach ($g as $e) { + printf(" - %s\n", $e); + } +} + +?> + +install: + - make -f travis/pecl/Makefile php + - make -f travis/pecl/Makefile pecl PECL=raphf:raphf:2.0.0 + +before_script: + - psql -U postgres -c "CREATE DATABASE test" + +script: + - make -f travis/pecl/Makefile ext PECL=pq + - 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