travis: clean on build failure
[m6w6/ext-http] / .travis.yml
index 41dc98aefb26e24d769487193784a183222a0b75..fc0bb7f21996e08a2086bac94b35b9ecde917ed5 100644 (file)
@@ -41,7 +41,7 @@ env:
 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