Skip to content

Commit 299415d

Browse files
committed
Validate composer.json
Composer users out there (e.g. wikimedia, ...), cf. 457e5ef ("Add .gitattributes to exclude dev files from Composer package", 2020-02-15).
1 parent a437ec1 commit 299415d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,19 @@ vendor/bin/php% : composer.json
1111
$(COMPOSERCMD) install
1212
touch -c $@
1313

14-
build: vendor/bin/phpunit
14+
build-main: vendor/bin/phpunit
1515
pear version
1616
$(PHP) $<
1717
pear run-tests -r tests/
1818

19+
build-composer:
20+
$(COMPOSERCMD:%-q=%) --version
21+
$(COMPOSERCMD:%-q=%) validate --strict
22+
23+
build: build-main build-composer
24+
1925
all: build
26+
.PHONY: build build-main build-composer
2027

2128
clean:
2229
rm -f -- $(wildcard .php*)

0 commit comments

Comments
 (0)