don't fail on cppcheck, yet
[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 "with_http_libbrotli_dir" => ["/home/travis/brotli"]
31 ]);
32 foreach ($env as $e) {
33 printf(" - %s\n", $e);
34 }
35
36 ?>
37 # once with gcov
38 - CFLAGS="-O0 -g --coverage" CXXFLAGS="-O0 -g --coverage" PHP=master enable_json=yes enable_hash=yes enable_iconv=yes
39
40 before_script:
41 - ./travis/brotli.sh
42 - make -f travis/pecl/Makefile php
43 - make -f travis/pecl/Makefile pecl PECL=ext-raphf.git:raphf:master
44 - make -f travis/pecl/Makefile pecl PECL=ext-propro.git:propro:master
45 - make -f travis/pecl/Makefile ext PECL=http
46
47 script:
48 - make -f travis/pecl/Makefile test
49 - make -f travis/pecl/Makefile cppcheck CPPCHECK_EXITCODE=0
50
51 after_failure:
52 - test -e tests/helper/server.log && cat tests/helper/server.log
53 after_success:
54 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
55
56 notifications:
57 webhooks:
58 urls:
59 - https://webhooks.gitter.im/e/28d35158ac7e385bd14d
60 on_success: change
61 on_failure: always
62 on_start: never