forked from openspout/openspout
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (33 loc) · 912 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (33 loc) · 912 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
38
39
all: csfix static-analysis test
@echo "Done."
vendor: composer.json
composer update
touch vendor
.PHONY: csfix
csfix: vendor
vendor/bin/php-cs-fixer fix --verbose
.PHONY: static-analysis
static-analysis: vendor
php -d zend.assertions=1 vendor/bin/phpstan analyse
.PHONY: test
test: vendor
chmod -fR u+rwX tests/resources/generated_* || true
rm -fr tests/resources/generated_*
php \
-d zend.assertions=1 \
-d open_basedir="$(realpath .)" \
-d sys_temp_dir="$(realpath .)" \
vendor/bin/phpunit \
--coverage-xml=coverage/coverage-xml \
--coverage-html=coverage/html \
--log-junit=coverage/junit.xml \
${arg}
.PHONY: code-coverage
code-coverage: test
php -d zend.assertions=1 vendor/bin/infection \
--threads=$(shell nproc) \
--coverage=coverage \
--skip-initial-tests
.PHONY: benchmark
benchmark: vendor
php -d zend.assertions=1 vendor/bin/phpbench run --report=default ${arg}