travis: allow_failures
[m6w6/ext-http] / scripts / gen_travis_yml.php
index 0fe344ba38d1aaec5d18e8f787ecd45d0fe6b7c7..d4e409fbdf0372e3c1b1642a839c3ad6fc3a1e1c 100755 (executable)
@@ -1,8 +1,6 @@
 #!/usr/bin/env php
 # autogenerated file; do not edit
 language: c
-sudo: false
-dist: trusty
 
 addons:
  apt:
@@ -20,6 +18,7 @@ compiler:
  - clang
 
 cache:
+ apt: true
  directories:
   - $HOME/cache
 before_cache:
@@ -71,12 +70,24 @@ $env = $gen([
                "with_http_libidn2_dir",
        ],
 ]);
+$allow_failures = [];
 foreach ($env as $grp) {
        foreach ($grp as $e) {
+               if (!strncmp($e, "PHP=master", strlen("PHP=master"))) {
+                       $allow_failures[] = $e;
+               }
                printf(" - %s\n", $e);
        }
 }
+?>
 
+matrix:
+ fast_finish: true
+ allow_failures:
+<?php
+foreach ($allow_failures as $e) {
+       printf("  - env: %s\n", $e);
+}
 ?>
 
 install: