-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (26 loc) · 1.09 KB
/
Makefile
File metadata and controls
39 lines (26 loc) · 1.09 KB
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
# Commands run from inside the MediaWiki container ##########################################################
ci: test cs
test: phpunit
cs: phpcs stan
phpunit:
ifdef filter
php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist --filter $(filter)
else
php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist
endif
perf:
php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist --group Performance
phpcs:
vendor/bin/phpcs -p -s --standard=$(shell pwd)/phpcs.xml
stan:
vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=2G
stan-baseline:
vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=2G --generate-baseline
# Commands run from the host machine #######################################################################
npm-install:
docker run -it --rm -v "$(CURDIR)":/home/node/app -w /home/node/app -u node node:22 npm install
lint:
docker run -it --rm -v "$(CURDIR)":/home/node/app -w /home/node/app -u node node:22 npm run lint
jest:
docker run -it --rm -v "$(CURDIR)":/home/node/app -w /home/node/app -u node node:22 npm run test:unit
js: lint jest