travis (precise) comes with php-5.3
[m6w6/pecl-ci] / Makefile
index 4be60ee100647da7fef9f8a607beb3e44cb6ad62..7274717dba7c97f1032a2c2276f979c3ea8432ec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -56,9 +56,9 @@ $(srcdir)/php-versions.json: $(srcdir)/php-version.php
 
 $(srcdir)/php-$(PHP_VERSION)/configure: | $(srcdir)/php-versions.json
        if test $(PHP_VERSION) = "master"; then \
-               cd $(srcdir) && git clone --depth 1 -b master https://github.com/php/php-src php-master && cd php-master && ./buildconf \
+               cd $(srcdir) && git clone --depth 1 -b master https://github.com/php/php-src php-master && cd php-master && ./buildconf; \
        else \
-               curl -Ss $(PHP_MIRROR)/php-$(PHP_VERSION).tar.bz2 | tar xj -C $(srcdir) \
+               curl -Ss $(PHP_MIRROR)/php-$(PHP_VERSION).tar.bz2 | tar xj -C $(srcdir); \
        fi
 
 $(srcdir)/php-$(PHP_VERSION)/Makefile: $(srcdir)/php-$(PHP_VERSION)/configure | $(srcdir)/php-versions.json
@@ -126,3 +126,6 @@ ext: pecl-check $(srcdir)/pecl-$(PECL_EXTENSION) pecl
 .PHONY: php
 test: php
        REPORT_EXIT_STATUS=1 $(bindir)/php run-tests.php -q -p $(bindir)/php --set-timeout 300 --show-diff tests
+
+pharext/%: $(PECL_INI) php | $(srcdir)/../%.ext.phar
+       for phar in $|; do $(bindir)/php $$phar --prefix=$(prefix) --ini=$(PECL_INI); done