delete gcov files before cache
[m6w6/ext-http] / scripts / gen_travis_yml.php
index b1e4135f9adc592ca5fdb1459d03ab9b163881c6..fc493df70de77d43cbce389db2dbda19a5310761 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env php
 # autogenerated file; do not edit
 language: c
-sudo: required
+sudo: false
 dist: trusty
 
 addons:
@@ -19,6 +19,12 @@ compiler:
  - gcc
  - clang
 
+cache:
+ directories:
+  - $HOME/cache
+before_cache:
+ - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete
+
 env:
 <?php
 
@@ -73,17 +79,18 @@ foreach ($env as $grp) {
 
 ?>
 
-before_script:
- - ./travis/brotli.sh
+install:
+ - ./travis/brotli.sh v1.0.2
  - make -f travis/pecl/Makefile php
  - make -f travis/pecl/Makefile pecl PECL=ext-raphf.git:raphf:master
  - make -f travis/pecl/Makefile pecl PECL=ext-propro.git:propro:master
- - make -f travis/pecl/Makefile ext PECL=http
 
 script:
+ - make -f travis/pecl/Makefile ext PECL=http
  - make -f travis/pecl/Makefile test
- - make -f travis/pecl/Makefile cppcheck CPPCHECK_EXITCODE=0
 
+after_script:
+ - make -f travis/pecl/Makefile cppcheck
 after_failure:
  - test -e tests/helper/server.log && cat tests/helper/server.log
 after_success: