c46f646a1d2280ef53de4ad16d1eef910d11f73f
[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 - libevent-dev
16
17 env:
18 <?php
19
20 $gen = include "./travis/pecl/gen-matrix.php";
21 $env = $gen([
22 "PHP" => ["7.0"],
23 "enable_debug",
24 "enable_maintainer_zts",
25 "enable_json",
26 "enable_hash" => ["yes"],
27 "enable_iconv" => ["yes"],
28 "with_http_libicu_dir",
29 ]);
30 foreach ($env as $e) {
31 printf(" - %s\n", $e);
32 }
33
34 ?>
35
36 before_script:
37 - make -f travis/pecl/Makefile php
38 - make -f travis/pecl/Makefile pecl PECL=raphf:raphf:2.0.0
39 - make -f travis/pecl/Makefile pecl PECL=propro:propro:2.0.1
40 - make -f travis/pecl/Makefile ext PECL=http
41
42 script:
43 - make -f travis/pecl/Makefile test
44 - make -f travis/pecl/Makefile cppcheck
45
46 after_failure:
47 - test -e tests/helper/server.log && cat tests/helper/server.log
48 after_success:
49 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
50
51 notifications:
52 webhooks:
53 urls:
54 - https://webhooks.gitter.im/e/28d35158ac7e385bd14d
55 on_success: change
56 on_failure: always
57 on_start: never