X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=scripts%2Fgen_travis_yml.php;h=0fe344ba38d1aaec5d18e8f787ecd45d0fe6b7c7;hp=b1e4135f9adc592ca5fdb1459d03ab9b163881c6;hb=a593cb79afbef8c591e812ab413e9cab8550c11b;hpb=b44bd8e1efb2518380b95220818d8643c7cfd845 diff --git a/scripts/gen_travis_yml.php b/scripts/gen_travis_yml.php index b1e4135..0fe344b 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: @@ -19,14 +19,20 @@ compiler: - gcc - clang +cache: + directories: + - $HOME/cache +before_cache: + - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete + env: ["7.0", "7.1", "master"], + "PHP" => ["7.0", "7.1", "7.2", "master"], "enable_debug" => "yes", "enable_maintainer_zts" => "yes", "enable_json" => "yes", @@ -73,17 +79,24 @@ foreach ($env as $grp) { ?> -before_script: - - ./travis/brotli.sh - - make -f travis/pecl/Makefile php +install: + - ./travis/brotli.sh v1.0.2 + - | + if test "$PHP" = master; then \ + make -f travis/pecl/Makefile reconf; \ + make -f travis/pecl/Makefile pecl-rm pecl-clean PECL=ext-raphf.git:raphf:master; \ + make -f travis/pecl/Makefile pecl-rm pecl-clean PECL=ext-propro.git:propro:master; \ + fi + - make -f travis/pecl/Makefile php || make -f travis/pecl/Makefile clean php - make -f travis/pecl/Makefile pecl PECL=ext-raphf.git:raphf:master - make -f travis/pecl/Makefile pecl PECL=ext-propro.git:propro:master - - make -f travis/pecl/Makefile ext PECL=http script: + - make -f travis/pecl/Makefile ext PECL=http - make -f travis/pecl/Makefile test - - make -f travis/pecl/Makefile cppcheck CPPCHECK_EXITCODE=0 +after_script: + - make -f travis/pecl/Makefile cppcheck after_failure: - test -e tests/helper/server.log && cat tests/helper/server.log after_success: