X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=Makefile;h=f2190b181951c19d8bd3a068a59cbe66b111f379;hb=3260aaf557445587c4aba63d3b4a67a74b64328d;hp=6630634f0b4512543ba6a2f6f8964694c4be7fa6;hpb=309d295271f95d9267c64535de8c2e638f6614cc;p=m6w6%2Fpecl-ci diff --git a/Makefile b/Makefile index 6630634..f2190b1 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ prefix ?= $(TMPDIR)/php-$(PHP)-$(shell env |grep -E '^with_|^enable_' | tr -c '[ endif exec_prefix ?= $(prefix) bindir = $(exec_prefix)/bin -srcdir := $(prefix)/src +srcdir = $(prefix)/src ifdef TRAVIS_BUILD_DIR curdir ?= $(TRAVIS_BUILD_DIR) else @@ -75,6 +75,7 @@ clean: .PHONY: check check: $(PHP_RELEASES) @if test -z "$(PHP)"; then echo "No php version specified, e.g. PHP=5.6"; exit 1; fi + @if test -z "$(PHP_VERSION)"; then echo "No PHP version akin to $(PHP) available"; exit 1; fi if test -d $(srcdir)/php-$(PHP_VERSION)/.git; then cd $(srcdir)/php-$(PHP_VERSION)/; git pull; fi .PHONY: reconf @@ -134,7 +135,7 @@ $(PECL_DIR)/config.m4: fi; \ else \ mkdir -p $(PECL_DIR); \ - curl -Ss $(PECL_MIRROR)/$(PECL_EXTENSION)$(if $(PECL_VERSION),/$(PECL_VERSION)) \ + curl -LSs $(PECL_MIRROR)/$(PECL_EXTENSION)$(if $(PECL_VERSION),/$(PECL_VERSION)) \ | tar xz --strip-components 1 -C $(PECL_DIR); \ fi @@ -167,7 +168,10 @@ ext: pecl-check pecl .PHONY: test test: php REPORT_EXIT_STATUS=1 $(bindir)/php run-tests.php -q -p $(bindir)/php --set-timeout 300 --show-diff tests - +.PHONY: pecl-test +pecl-test: php + REPORT_EXIT_STATUS=1 $(bindir)/php $(prefix)/lib/php/build/run-tests.php -q -p $(bindir)/php --set-timeout 300 --show-diff $(PECL_DIR)/tests + pharext/%: $(PECL_INI) php | $(srcdir)/../%.ext.phar for phar in $|; do $(bindir)/php $$phar --prefix=$(prefix) --ini=$(PECL_INI); done