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