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