travis: allow failures with PHP-master
[m6w6/ext-http] / scripts / gen_travis_yml.php
1 #!/usr/bin/env php
2 # autogenerated file; do not edit
3 language: c
4
5 addons:
6 apt:
7 packages:
8 - php5-cli
9 - php-pear
10 - libcurl4-openssl-dev
11 - libidn11-dev
12 - libidn2-0-dev
13 - libicu-dev
14 - libevent-dev
15
16 compiler:
17 - gcc
18 - clang
19
20 cache:
21 directories:
22 - $HOME/cache
23 before_cache:
24 - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete
25
26 matrix:
27 fast_finish: true
28 allow_failures:
29 - env: PHP=master
30
31 env:
32 <?php
33
34 $gen = include "./travis/pecl/gen-matrix.php";
35 $cur = "7.3";
36 $env = $gen([
37 // most useful for all additional versions except current
38 "PHP" => ["7.0", "7.1", "7.2", "master"],
39 "enable_debug" => "yes",
40 "enable_maintainer_zts" => "yes",
41 "enable_json" => "yes",
42 "enable_hash" => "yes",
43 "enable_iconv" => "yes",
44 "with_http_libbrotli_dir" => "/home/travis/brotli"
45 ], [
46 // everything disabled for current
47 "PHP" => $cur,
48 "with_http_libicu_dir" => "no",
49 "with_http_libidn_dir" => "no",
50 "with_http_libidn2_dir" => "no",
51 "with_http_libcurl_dir" => "no",
52 "with_http_libevent_dir" => "no",
53 ], [
54 // everything enabled for current, switching on debug/zts
55 "PHP" => $cur,
56 "enable_debug",
57 "enable_maintainer_zts",
58 "enable_json" => "yes",
59 "enable_hash" => "yes",
60 "enable_iconv" => "yes",
61 "with_http_libbrotli_dir" => "/home/travis/brotli",
62 ], [
63 // once everything enabled for current, with coverage
64 "CFLAGS" => "'-O0 -g --coverage'",
65 "CXXFLAGS" => "'-O0 -g --coverage'",
66 "PHP" => $cur,
67 "enable_json" => "yes",
68 "enable_hash" => "yes",
69 "enable_iconv" => "yes",
70 "with_http_libbrotli_dir" => "/home/travis/brotli",
71 [
72 "with_http_libicu_dir",
73 "with_http_libidn_dir",
74 "with_http_libidn2_dir",
75 ],
76 ]);
77 foreach ($env as $grp) {
78 foreach ($grp as $e) {
79 printf(" - %s\n", $e);
80 }
81 }
82
83 ?>
84
85 install:
86 - ./travis/brotli.sh v1.0.2
87 - |
88 if test "$PHP" = master; then \
89 make -f travis/pecl/Makefile reconf; \
90 make -f travis/pecl/Makefile pecl-rm pecl-clean PECL=ext-raphf.git:raphf:master; \
91 make -f travis/pecl/Makefile pecl-rm pecl-clean PECL=ext-propro.git:propro:master; \
92 fi
93 - make -f travis/pecl/Makefile php || make -f travis/pecl/Makefile clean php
94 - make -f travis/pecl/Makefile pecl PECL=ext-raphf.git:raphf:master
95 - make -f travis/pecl/Makefile pecl PECL=ext-propro.git:propro:master
96
97 script:
98 - make -f travis/pecl/Makefile ext PECL=http
99 - make -f travis/pecl/Makefile test
100
101 after_script:
102 - make -f travis/pecl/Makefile cppcheck
103 after_failure:
104 - test -e tests/helper/server.log && cat tests/helper/server.log
105 after_success:
106 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
107
108 notifications:
109 webhooks:
110 urls:
111 - https://webhooks.gitter.im/e/28d35158ac7e385bd14d
112 on_success: change
113 on_failure: always
114 on_start: never