X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=scripts%2Fgen_travis_yml.php;h=3408a5d6fddc467737a0fb36ffc527a9719b6e76;hp=cd748488ba7cb8a1186a1b686474864e3180c615;hb=e609650b297eb4b56577a7430a6eb40cd858339b;hpb=2e92ec70991d53cb3d6d710ae7a6b3a6b31ec978 diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php index cd74848..3408a5d 100755 --- a/scripts/gen_travis_yml.php +++ b/scripts/gen_travis_yml.php @@ -1,7 +1,7 @@ #!/usr/bin/env php # autogenerated file; do not edit language: c -sudo: required +sudo: false dist: trusty addons: @@ -15,36 +15,80 @@ addons: - libicu-dev - libevent-dev +compiler: + - gcc + - clang + +cache: + directories: + - $HOME/cache + env: ["7.0", "7.1", "master"], +// most useful for all additional versions except current + "PHP" => ["7.0", "7.1", "master"], + "enable_debug" => "yes", + "enable_maintainer_zts" => "yes", + "enable_json" => "yes", + "enable_hash" => "yes", + "enable_iconv" => "yes", + "with_http_libbrotli_dir" => "/home/travis/brotli" +], [ +// everything disabled for current + "PHP" => $cur, + "with_http_libicu_dir" => "no", + "with_http_libidn_dir" => "no", + "with_http_libidn2_dir" => "no", + "with_http_libcurl_dir" => "no", + "with_http_libevent_dir" => "no", +], [ +// everything enabled for current, switching on debug/zts + "PHP" => $cur, "enable_debug", "enable_maintainer_zts", - "enable_json", - "enable_hash" => ["yes"], - "enable_iconv" => ["yes"], + "enable_json" => "yes", + "enable_hash" => "yes", + "enable_iconv" => "yes", + "with_http_libbrotli_dir" => "/home/travis/brotli", +], [ +// once everything enabled for current, with coverage + "CFLAGS" => "'-O0 -g --coverage'", + "CXXFLAGS" => "'-O0 -g --coverage'", + "PHP" => $cur, + "enable_json" => "yes", + "enable_hash" => "yes", + "enable_iconv" => "yes", + "with_http_libbrotli_dir" => "/home/travis/brotli", + [ + "with_http_libicu_dir", + "with_http_libidn_dir", + "with_http_libidn2_dir", + ], ]); -foreach ($env as $e) { - printf(" - %s\n", $e); +foreach ($env as $grp) { + foreach ($grp as $e) { + printf(" - %s\n", $e); + } } ?> -# once with gcov - - CFLAGS="-O0 -g --coverage" CXXFLAGS="-O0 -g --coverage" PHP=master enable_json=yes enable_hash=yes enable_iconv=yes -before_script: +install: + - ./travis/brotli.sh v1.0.2 - make -f travis/pecl/Makefile php - - make -f travis/pecl/Makefile pecl PECL=raphf:raphf:2.0.0 - - make -f travis/pecl/Makefile pecl PECL=propro:propro:2.0.1 - - make -f travis/pecl/Makefile ext PECL=http + - make -f travis/pecl/Makefile pecl PECL=ext-raphf.git:raphf:master + - make -f travis/pecl/Makefile pecl PECL=ext-propro.git:propro:master script: + - make -f travis/pecl/Makefile ext PECL=http - make -f travis/pecl/Makefile test - - make -f travis/pecl/Makefile cppcheck +after_script: + - make -f travis/pecl/Makefile cppcheck after_failure: - test -e tests/helper/server.log && cat tests/helper/server.log after_success: