travis
[m6w6/ext-raphf] / scripts / gen_travis_yml.php
1 #!/usr/bin/env php
2 # autogenerated file; do not edit
3 language: c
4
5 addons:
6 apt:
7 packages:
8 - php-cli
9 - php-pear
10
11 env:
12 <?php
13
14 $cur = "8.0";
15 $gen = include "./travis/pecl/gen-matrix.php";
16 $env = $gen([
17 "PHP" => ["7.0", "7.1", "7.2", "7.3", "7.4", "master"],
18 "enable_debug" => "yes",
19 "enable_maintainer_zts" => "yes",
20 ], [
21 "PHP" => $cur,
22 "enable_debug",
23 "enable_maintainer_zts"
24 ]);
25 foreach ($env as $grp) {
26 foreach ($grp as $e) {
27 printf(" - %s\n", $e);
28 }
29 }
30
31 ?>
32
33 matrix:
34 fast_finish: true
35 allow_failures:
36 <?php
37 $allow_failures = array_merge( ... array_map(function($a) {
38 return preg_grep('/^PHP=(master) /', $a);
39 }, $env));
40 foreach ($allow_failures as $e) {
41 printf(" - env: %s\n", $e);
42 }
43 ?>
44
45 before_script:
46 - make -f travis/pecl/Makefile php
47 - make -f travis/pecl/Makefile ext PECL=raphf
48
49 script:
50 - make -f travis/pecl/Makefile test