update travis
authorMichael Wallner <mike@php.net>
Tue, 6 Mar 2018 14:18:18 +0000 (15:18 +0100)
committerMichael Wallner <mike@php.net>
Tue, 6 Mar 2018 14:18:18 +0000 (15:18 +0100)
.travis.yml
gen_travis_yml.php
travis/pecl

index b5895a4c15d85e0f0dd7000b7830fd8723b5ba63..88a3b8bc7b3fc8cf83fff38b7d12cc742dfd9b0b 100644 (file)
@@ -1,6 +1,7 @@
 # autogenerated file; do not edit
-sudo: false
 language: c
+sudo: false
+dist: trusty
 
 addons:
  apt:
@@ -9,41 +10,38 @@ addons:
    - php-pear
    - valgrind
 
+compiler:
+ - gcc
+ - clang
+
 env:
  matrix:
-  - PHP=5.4 enable_debug=no enable_maintainer_zts=no
-  - PHP=5.5 enable_debug=no enable_maintainer_zts=no
-  - PHP=5.6 enable_debug=no enable_maintainer_zts=no
-  - PHP=7.0 enable_debug=no enable_maintainer_zts=no
-  - PHP=7.1 enable_debug=no enable_maintainer_zts=no
+  - PHP=5.4 enable_debug=yes
+  - PHP=5.5 enable_debug=yes
+  - PHP=5.6 enable_debug=yes
+  - PHP=7.0 enable_debug=yes enable_maintainer_zts=yes
+  - PHP=7.1 enable_debug=yes enable_maintainer_zts=yes
+  - PHP=master enable_debug=yes enable_maintainer_zts=yes
   - PHP=7.2 enable_debug=no enable_maintainer_zts=no
-  - PHP=master enable_debug=no enable_maintainer_zts=no
-  - PHP=5.4 enable_debug=yes enable_maintainer_zts=no
-  - PHP=5.5 enable_debug=yes enable_maintainer_zts=no
-  - PHP=5.6 enable_debug=yes enable_maintainer_zts=no
-  - PHP=7.0 enable_debug=yes enable_maintainer_zts=no
-  - PHP=7.1 enable_debug=yes enable_maintainer_zts=no
   - PHP=7.2 enable_debug=yes enable_maintainer_zts=no
-  - PHP=master enable_debug=yes enable_maintainer_zts=no
-  - PHP=5.4 enable_debug=no enable_maintainer_zts=yes
-  - PHP=5.5 enable_debug=no enable_maintainer_zts=yes
-  - PHP=5.6 enable_debug=no enable_maintainer_zts=yes
-  - PHP=7.0 enable_debug=no enable_maintainer_zts=yes
-  - PHP=7.1 enable_debug=no enable_maintainer_zts=yes
   - PHP=7.2 enable_debug=no enable_maintainer_zts=yes
-  - PHP=master enable_debug=no enable_maintainer_zts=yes
-  - PHP=5.4 enable_debug=yes enable_maintainer_zts=yes
-  - PHP=5.5 enable_debug=yes enable_maintainer_zts=yes
-  - PHP=5.6 enable_debug=yes enable_maintainer_zts=yes
-  - PHP=7.0 enable_debug=yes enable_maintainer_zts=yes
-  - PHP=7.1 enable_debug=yes enable_maintainer_zts=yes
   - PHP=7.2 enable_debug=yes enable_maintainer_zts=yes
-  - PHP=master enable_debug=yes enable_maintainer_zts=yes
+  - CFLAGS='-O0 -g --profile' CXXFLAGS='-O0 -g --profile' PHP=7.2
+
+cache:
+ directories:
+  - $HOME/cache
+
+before_cache:
+ - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete
 
-before_script:
+install:
  - make -f travis/pecl/Makefile php
- - make -f travis/pecl/Makefile ext PECL=apfd
 
 script:
+ - make -f travis/pecl/Makefile ext PECL=apfd
  - 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
+
index e5fdf2914252df8b69d35d76cc683e655d8bfd1f..e334aaa2577daad53528539ca2aee837741fdba0 100755 (executable)
@@ -1,7 +1,8 @@
 #!/usr/bin/env php
 # autogenerated file; do not edit
-sudo: false
 language: c
+sudo: false
+dist: trusty
 
 addons:
  apt:
@@ -10,26 +11,54 @@ addons:
    - php-pear
    - valgrind
 
+compiler:
+ - gcc
+ - clang
+
 env:
  matrix:
 <?php
 
+$cur = "7.2";
 $gen = include "./travis/pecl/gen-matrix.php";
 $env = $gen([
-       "PHP" => ["5.4", "5.5", "5.6", "7.0", "7.1", "7.2", "master"],
+       "PHP" => ["5.4", "5.5", "5.6"],
+       "enable_debug" => "yes"
+], [
+       "PHP" => ["7.0", "7.1", "master"],
+       "enable_debug" => "yes",
+       "enable_maintainer_zts" => "yes",
+], [
+       "PHP" => $cur,
        "enable_debug",
-       "enable_maintainer_zts",
+       "enable_maintainer_zts"
+], [
+       "CFLAGS" => "'-O0 -g --profile'",
+       "CXXFLAGS" => "'-O0 -g --profile'",
+       "PHP" => $cur,
 ]);
-foreach ($env as $e) {
-       printf("  - %s\n", $e);
+foreach ($env as $grp) {
+       foreach ($grp as $e) {
+               printf("  - %s\n", $e);
+       }
 }
 
 ?>
 
-before_script:
+cache:
+ directories:
+  - $HOME/cache
+
+before_cache:
+ - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete
+
+install:
  - make -f travis/pecl/Makefile php
- - make -f travis/pecl/Makefile ext PECL=apfd
 
 script:
+ - make -f travis/pecl/Makefile ext PECL=apfd
  - 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
+
index 79de9c8e52f16a2e06324683cf4c00c91df1b6c1..b6683bb97ca8618dacf7d101e5844d1bb1b2838a 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 79de9c8e52f16a2e06324683cf4c00c91df1b6c1
+Subproject commit b6683bb97ca8618dacf7d101e5844d1bb1b2838a