852fce96697d235d8b649e3be07f55c4de563810
[m6w6/ext-http] / scripts / gen_travis_yml.php
1 #!/usr/bin/env php
2 # autogenerated file; do not edit
3 language: c
4
5 addons:
6 apt:
7 packages:
8 - php5-cli
9 - php-pear
10 - libcurl4-openssl-dev
11 - zlib1g-dev
12 - libidn11-dev
13 - libevent-dev
14 - cppcheck
15
16 env:
17 <?php
18
19 $gen = include "./travis/pecl/gen-matrix.php";
20 $env = $gen([
21 "PHP" => ["7.0", "7.1", "master"],
22 "enable_debug",
23 "enable_maintainer_zts",
24 "enable_json",
25 "enable_hash" => ["yes"],
26 "enable_iconv" => ["yes"],
27 ]);
28 foreach ($env as $e) {
29 printf(" - %s\n", $e);
30 }
31
32 ?>
33 # once with gcov
34 - CFLAGS="-O0 -g --coverage" CXXFLAGS="-O0 -g --coverage" PHP=master enable_json=yes enable_hash=yes enable_iconv=yes
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 sudo: false
52 notifications:
53 webhooks:
54 urls:
55 - https://webhooks.gitter.im/e/28d35158ac7e385bd14d
56 on_success: change
57 on_failure: always
58 on_start: never