new build matrix
[m6w6/ext-http] / scripts / gen_travis_yml.php
1 #!/usr/bin/env php
2 # autogenerated file; do not edit
3 language: c
4 sudo: required
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 env:
23 <?php
24
25 $gen = include "./travis/pecl/gen-matrix.php";
26 $cur = "7.2";
27 $env = $gen([
28 // most useful for all additional versions except current
29 "PHP" => ["7.0", "7.1", "master"],
30 "enable_debug" => "yes",
31 "enable_maintainer_zts" => "yes",
32 "enable_json" => "yes",
33 "enable_hash" => "yes",
34 "enable_iconv" => "yes",
35 "with_http_libbrotli_dir" => "/home/travis/brotli"
36 ], [
37 // everything disabled for current
38 "PHP" => $cur,
39 "with_http_libicu_dir" => "no",
40 "with_http_libidn_dir" => "no",
41 "with_http_libidn2_dir" => "no",
42 "with_http_libcurl_dir" => "no",
43 "with_http_libevent_dir" => "no",
44 ], [
45 // everything enabled for current, switching on debug/zts
46 "PHP" => $cur,
47 "enable_debug",
48 "enable_maintainer_zts",
49 "enable_json" => "yes",
50 "enable_hash" => "yes",
51 "enable_iconv" => "yes",
52 "with_http_libbrotli_dir" => "/home/travis/brotli",
53 ], [
54 // once everything enabled for current, with coverage
55 "CFLAGS" => "'-O0 -g --coverage'",
56 "CXXFLAGS" => "'-O0 -g --coverage'",
57 "PHP" => $cur,
58 "enable_json" => "yes",
59 "enable_hash" => "yes",
60 "enable_iconv" => "yes",
61 "with_http_libbrotli_dir" => "/home/travis/brotli",
62 [
63 "with_http_libicu_dir",
64 "with_http_libidn_dir",
65 "with_http_libidn2_dir",
66 ],
67 ]);
68 foreach ($env as $grp) {
69 foreach ($grp as $e) {
70 printf(" - %s\n", $e);
71 }
72 }
73
74 ?>
75
76 before_script:
77 - ./travis/brotli.sh
78 - make -f travis/pecl/Makefile php
79 - make -f travis/pecl/Makefile pecl PECL=ext-raphf.git:raphf:master
80 - make -f travis/pecl/Makefile pecl PECL=ext-propro.git:propro:master
81 - make -f travis/pecl/Makefile ext PECL=http
82
83 script:
84 - make -f travis/pecl/Makefile test
85 - make -f travis/pecl/Makefile cppcheck CPPCHECK_EXITCODE=0
86
87 after_failure:
88 - test -e tests/helper/server.log && cat tests/helper/server.log
89 after_success:
90 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
91
92 notifications:
93 webhooks:
94 urls:
95 - https://webhooks.gitter.im/e/28d35158ac7e385bd14d
96 on_success: change
97 on_failure: always
98 on_start: never