trusty seems faster, try again
[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 - zlib1g-dev
14 - libidn11-dev
15 - libevent-dev
16
17 env:
18 <?php
19
20 $gen = include "./travis/pecl/gen-matrix.php";
21 $env = $gen([
22 "PHP" => ["7.0", "7.1", "master"],
23 "enable_debug",
24 "enable_maintainer_zts",
25 "enable_json",
26 "enable_hash" => ["yes"],
27 "enable_iconv" => ["yes"],
28 ]);
29 foreach ($env as $e) {
30 printf(" - %s\n", $e);
31 }
32
33 ?>
34 # once with gcov
35 - CFLAGS="-O0 -g --coverage" CXXFLAGS="-O0 -g --coverage" PHP=master enable_json=yes enable_hash=yes enable_iconv=yes
36
37 before_script:
38 - make -f travis/pecl/Makefile php
39 - make -f travis/pecl/Makefile pecl PECL=raphf:raphf:2.0.0
40 - make -f travis/pecl/Makefile pecl PECL=propro:propro:2.0.1
41 - make -f travis/pecl/Makefile ext PECL=http
42
43 script:
44 - make -f travis/pecl/Makefile test
45 - make -f travis/pecl/Makefile cppcheck
46
47 after_failure:
48 - test -e tests/helper/server.log && cat tests/helper/server.log
49 after_success:
50 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
51
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