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