update travis
[m6w6/ext-raphf] / 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
16 $cur = "7.3";
17 $gen = include "./travis/pecl/gen-matrix.php";
18 $env = $gen([
19 "PHP" => ["7.0", "7.1", "7.2", "master"],
20 "enable_debug" => "yes",
21 "enable_maintainer_zts" => "yes",
22 ], [
23 "PHP" => $cur,
24 "enable_debug",
25 "enable_maintainer_zts"
26 ]);
27 foreach ($env as $grp) {
28 foreach ($grp as $e) {
29 printf(" - %s\n", $e);
30 }
31 }
32
33 ?>
34
35 matrix:
36 fast_finish: true
37 allow_failures:
38 <?php
39 $allow_failures = array_merge( ... array_map(function($a) {
40 return preg_grep('/^PHP=master /', $a);
41 }, $env));
42 foreach ($allow_failures as $e) {
43 printf(" - env: %s\n", $e);
44 }
45 ?>
46
47 before_script:
48 - make -f travis/pecl/Makefile php
49 - make -f travis/pecl/Makefile ext PECL=raphf
50
51 script:
52 - make -f travis/pecl/Makefile test