2a80a3734ba91d29a987f8a790711269bfe6ec16
[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
6 addons:
7 apt:
8 packages:
9 - php5-cli
10 - php-pear
11 - libcurl4-openssl-dev
12 - zlib1g-dev
13 - libidn11-dev
14 - libevent-dev
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 notifications:
52 webhooks:
53 urls:
54 - https://webhooks.gitter.im/e/28d35158ac7e385bd14d
55 on_success: change
56 on_failure: always
57 on_start: never