[config.w32] Warn that propro was discontinued
[m6w6/ext-propro] / scripts / gen_travis_yml.php
index 0283920380250307204579ae6786a7e6c713fbf9..8e9f951831dffbd82dd2dc14231d045cc66aed2d 100755 (executable)
@@ -1,28 +1,39 @@
 #!/usr/bin/env php
 # autogenerated file; do not edit
-sudo: false
 language: c
 
 addons:
  apt:
   packages:
-   - php5-cli
+   - php-cli
    - php-pear
 
 env:
- matrix:
 <?php
-
 $gen = include "./travis/pecl/gen-matrix.php";
+$cur = "7.4";
 $env = $gen([
-       "PHP" => ["master"],
+       "PHP" => ["7.0", "7.1", "7.2", "7.3"],
+       "enable_debug" => "yes",
+       "enable_maintainer_zts" => "yes",
+       "enable_json" => "yes",
+], [
+       "PHP" => $cur,
+       "enable_json" => "yes",
        "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);
+       }
+}
 ?>
 
 before_script:
@@ -32,3 +43,5 @@ before_script:
 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