forked from jakubkulhan/chrome-devtools-protocol
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (25 loc) · 652 Bytes
/
Makefile
File metadata and controls
37 lines (25 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PHPUNIT_FLAGS=
all: clean download-protocol generate
regenerate:
rm -rf gen-src/*
make generate
generate:
php generate.php
download-protocol:
php download.php > protocol.json
md5sum protocol.json
fix-protocol:
md5sum protocol.json > protocol.json.md5
check-protocol:
md5sum -c protocol.json.md5
clean:
grep -lir '@generated' gen-src | xargs rm
docker-image:
./.circleci/build-docker-image.sh
test: lint phpstan phpunit
lint:
./vendor/bin/parallel-lint gen-src src test
phpunit:
./vendor/bin/phpunit $(PHPUNIT_FLAGS)
phpstan:
./vendor/bin/phpstan analyse --level=5 --configuration=phpstan.neon --memory-limit=1g gen-src src test