projects
/
m6w6
/
ext-propro
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
move to PHP-7.4 as current GA
[m6w6/ext-propro]
/
scripts
/
gen_travis_yml.php
diff --git
a/scripts/gen_travis_yml.php
b/scripts/gen_travis_yml.php
index 0283920380250307204579ae6786a7e6c713fbf9..68bdd7cc8608470f670434abf5de32e20d9ff598 100755
(executable)
--- a/
scripts/gen_travis_yml.php
+++ b/
scripts/gen_travis_yml.php
@@
-2,27
+2,52
@@
# autogenerated file; do not edit
sudo: false
language: c
# autogenerated file; do not edit
sudo: false
language: c
+dist: xenial
addons:
apt:
packages:
addons:
apt:
packages:
- - php
5
-cli
+ - php-cli
- php-pear
env:
- php-pear
env:
- matrix:
<?php
<?php
-
$gen = include "./travis/pecl/gen-matrix.php";
$gen = include "./travis/pecl/gen-matrix.php";
+$cur = "7.4";
$env = $gen([
$env = $gen([
- "PHP" => ["master"],
+ "PHP" => ["7.0", "7.1", "7.2", "7.3", "master"],
+ "enable_debug" => "yes",
+ "enable_maintainer_zts" => "yes",
+ "enable_json" => "yes",
+], [
+ "PHP" => $cur,
+ "enable_json" => "yes",
"enable_debug",
"enable_debug",
- "enable_maintainer_zts",
+ "enable_maintainer_zts"
+], [
+ "PHP" => $cur,
+ "enable_json" => "yes",
+ "CFLAGS" => "'-O0 -g --coverage'",
+ "CXXFLAGS" => "'-O0 -g --coverage'",
]);
]);
-foreach ($env as $e) {
- printf(" - %s\n", $e);
+
+foreach ($env as $g) {
+ foreach ($g as $e) {
+ printf(" - %s\n", $e);
+ }
}
}
+?>
+matrix:
+ fast_finish: true
+ allow_failures:
+<?php
+$allow_failures = array_merge( ... array_map(function($a) {
+ return preg_grep('/^PHP=(master) /', $a);
+}, $env));
+foreach ($allow_failures as $e) {
+ printf(" - env: %s\n", $e);
+}
?>
before_script:
?>
before_script:
@@
-32,3
+57,5
@@
before_script:
script:
- make -f travis/pecl/Makefile test
script:
- make -f travis/pecl/Makefile test
+after_success:
+ - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy