travis: clean on build failure
[m6w6/ext-http] / scripts / gen_travis_yml.php
index 68f9b863a81545a94f96c5d7cde04ad018ecba26..bd62c6dff7456f5c9e0abb2f48d4352488c95889 100755 (executable)
@@ -82,7 +82,7 @@ foreach ($env as $grp) {
 install:
  - ./travis/brotli.sh v1.0.2
  - if test "$PHP" = master; then make -f travis/pecl/Makefile reconf; fi
- - make -f travis/pecl/Makefile php
+ - make -f travis/pecl/Makefile php || make -f travis/pecl/Makefile clean 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