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