X-Git-Url: https://git.m6w6.name/?p=m6w6%2Ftravis-pecl;a=blobdiff_plain;f=Makefile;h=4a903a800030c45581df06f9fd58e99cff648477;hp=8330ebc090ae9f6355e8f0f3584b6d164f514e2d;hb=HEAD;hpb=63c2c573f9ef2893c223d2d1087c198598e85df3 diff --git a/Makefile b/Makefile index 8330ebc..4a903a8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ export -PHP ?= 7.3 +PHP ?= 7.4 JOBS ?= 2 PHP_MIRROR ?= https://php.net/distributions/ TMPDIR ?= /tmp @@ -62,6 +62,7 @@ versions: $(PHP_RELEASES) $(PHP_RELEASES): $(makdir)/php-version-url-dist.php $(makdir)/php-version-url-qa.php | $(srcdir) cd $(makdir) && printf "master\tmaster\t%s/fetch-master.sh\n" $$(pwd) >$@ + curl -sSL "https://php.net/releases/index.php?json&version=8&max=-1" | $(makdir)/php-version-url-dist.php >>$@ curl -sSL "https://php.net/releases/index.php?json&version=7&max=-1" | $(makdir)/php-version-url-dist.php >>$@ curl -sSL "https://php.net/releases/index.php?json&version=5&max=-1" | $(makdir)/php-version-url-dist.php >>$@ curl -sSL "https://qa.php.net/api.php?type=qa-releases&format=json" | $(makdir)/php-version-url-qa.php >>$@ @@ -165,11 +166,13 @@ ext: pecl-check pecl $(makdir)/check-packagexml.php package.xml .PHONY: test +test: TESTS ?= tests test: php - REPORT_EXIT_STATUS=1 $(bindir)/php run-tests.php -q -p $(bindir)/php --set-timeout 300 --show-diff tests + REPORT_EXIT_STATUS=1 $(bindir)/php run-tests.php -q -p $(bindir)/php --set-timeout 300 --show-diff $(TESTS) .PHONY: pecl-test +pecl-test: TESTS ?= $(PECL_DIR)/tests 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 + REPORT_EXIT_STATUS=1 $(bindir)/php $(prefix)/lib/php/build/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