travis: codecov
[m6w6/ext-propro] / scripts / gen_travis_yml.php
1 #!/usr/bin/env php
2 # autogenerated file; do not edit
3 sudo: false
4 language: c
5
6 addons:
7 apt:
8 packages:
9 - php5-cli
10 - php-pear
11
12 env:
13 <?php
14 $gen = include "./travis/pecl/gen-matrix.php";
15 $cur = "7.3";
16 $env = $gen([
17 "PHP" => ["7.0", "7.1", "7.2", "master"],
18 "enable_debug" => "yes",
19 "enable_maintainer_zts" => "yes",
20 "enable_json" => "yes",
21 ], [
22 "PHP" => $cur,
23 "enable_json" => "yes",
24 "enable_debug",
25 "enable_maintainer_zts"
26 ], [
27 "PHP" => $cur,
28 "enable_json" => "yes",
29 "CFLAGS" => "'-O0 -g --coverage'",
30 "CXXFLAGS" => "'-O0 -g --coverage'",
31 ]);
32
33 foreach ($env as $g) {
34 foreach ($g as $e) {
35 printf(" - %s\n", $e);
36 }
37 }
38 ?>
39
40 matrix:
41 fast_finish: true
42 allow_failures:
43 <?php
44 $allow_failures = array_merge( ... array_map(function($a) {
45 return preg_grep('/^PHP=master /', $a);
46 }, $env));
47 foreach ($allow_failures as $e) {
48 printf(" - env: %s\n", $e);
49 }
50 ?>
51
52 before_script:
53 - make -f travis/pecl/Makefile php
54 - make -f travis/pecl/Makefile ext PECL=propro
55
56 script:
57 - make -f travis/pecl/Makefile test
58
59 after_success:
60 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy