X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-apfd;a=blobdiff_plain;f=gen_travis_yml.php;fp=gen_travis_yml.php;h=e334aaa2577daad53528539ca2aee837741fdba0;hp=e5fdf2914252df8b69d35d76cc683e655d8bfd1f;hb=b88e32863367ff518852a40bac847fa9fe56d1c6;hpb=effb08fc79d13bfa72f3143977985dc8a16192c0 diff --git a/gen_travis_yml.php b/gen_travis_yml.php index e5fdf29..e334aaa 100755 --- a/gen_travis_yml.php +++ b/gen_travis_yml.php @@ -1,7 +1,8 @@ #!/usr/bin/env php # autogenerated file; do not edit -sudo: false language: c +sudo: false +dist: trusty addons: apt: @@ -10,26 +11,54 @@ addons: - php-pear - valgrind +compiler: + - gcc + - clang + env: matrix: ["5.4", "5.5", "5.6", "7.0", "7.1", "7.2", "master"], + "PHP" => ["5.4", "5.5", "5.6"], + "enable_debug" => "yes" +], [ + "PHP" => ["7.0", "7.1", "master"], + "enable_debug" => "yes", + "enable_maintainer_zts" => "yes", +], [ + "PHP" => $cur, "enable_debug", - "enable_maintainer_zts", + "enable_maintainer_zts" +], [ + "CFLAGS" => "'-O0 -g --profile'", + "CXXFLAGS" => "'-O0 -g --profile'", + "PHP" => $cur, ]); -foreach ($env as $e) { - printf(" - %s\n", $e); +foreach ($env as $grp) { + foreach ($grp as $e) { + printf(" - %s\n", $e); + } } ?> -before_script: +cache: + directories: + - $HOME/cache + +before_cache: + - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete + +install: - make -f travis/pecl/Makefile php - - make -f travis/pecl/Makefile ext PECL=apfd script: + - make -f travis/pecl/Makefile ext PECL=apfd - 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 +