try trusty
[m6w6/ext-http] / scripts / gen_travis_yml.php
1 #!/usr/bin/env php
2 # autogenerated file; do not edit
3 language: c
4 sudo: requried
5 dist: trusty
6
7 addons:
8 apt:
9 packages:
10 - php5-cli
11 - php-pear
12 - libcurl4-openssl-dev
13 - zlib1g-dev
14 - libidn11-dev
15 - libevent-dev
16 - cppcheck
17
18 env:
19 <?php
20
21 $gen = include "./travis/pecl/gen-matrix.php";
22 $env = $gen([
23 "PHP" => ["7.0", "7.1", "master"],
24 "enable_debug",
25 "enable_maintainer_zts",
26 "enable_json",
27 "enable_hash" => ["yes"],
28 "enable_iconv" => ["yes"],
29 ]);
30 foreach ($env as $e) {
31 printf(" - %s\n", $e);
32 }
33
34 ?>
35 # once with gcov
36 - CFLAGS="-O0 -g --coverage" CXXFLAGS="-O0 -g --coverage" PHP=master enable_json=yes enable_hash=yes enable_iconv=yes
37
38 before_script:
39 - make -f travis/pecl/Makefile php
40 - make -f travis/pecl/Makefile pecl PECL=raphf:raphf:2.0.0
41 - make -f travis/pecl/Makefile pecl PECL=propro:propro:2.0.1
42 - make -f travis/pecl/Makefile ext PECL=http
43
44 script:
45 - make -f travis/pecl/Makefile test
46 - make -f travis/pecl/Makefile cppcheck
47
48 after_failure:
49 - test -e tests/helper/server.log && cat tests/helper/server.log
50 after_success:
51 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
52
53 notifications:
54 webhooks:
55 urls:
56 - https://webhooks.gitter.im/e/28d35158ac7e385bd14d
57 on_success: change
58 on_failure: always
59 on_start: never