generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
41 lines (35 loc) · 874 Bytes
/
Makefile
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
40
41
run:
docker compose run --rm --entrypoint $(CMD) php
test-all: test-sqlite \
test-mysql \
test-pgsql \
test-mssql \
test-oracle
test-sqlite: testsuite-Sqlite
test-mysql: testsuite-Mysql
test-pgsql: testsuite-Pgsql
test-mssql: testsuite-Mssql
test-oracle:
docker compose run \
--rm \
--entrypoint 'bash -c -l "vendor/bin/phpunit --testsuite Oracle"' \
php
testsuite-%:
docker compose run \
--rm \
--entrypoint "vendor/bin/phpunit --testsuite $(subst testsuite-,,$@)" \
php
static-analysis: CMD="vendor/bin/psalm --no-cache"
static-analysis: run
mutation: CMD="\
vendor/bin/roave-infection-static-analysis-plugin \
--threads=2 \
--min-msi=0 \
--min-covered-msi=100 \
--ignore-msi-with-no-mutations \
--only-covered"
mutation: run
composer-require-checker: CMD="vendor/bin/composer-require-checker"
composer-require-checker: run
shell: CMD="bash"
shell: run