-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (36 loc) · 1.29 KB
/
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
42
43
44
45
.DEFAULT_GOAL := help
help:
@echo "Available commands:"
@echo " - run-tests: Run tests"
@echo " - run-infection: Runs Infection mutation testing"
@echo " - coverage-text: Runs coverage text"
@echo " - coverage-html: Runs coverage html"
@echo " - all: Runs CS-Fixer, CS-Checker, Static Analyser and Tests"
@echo " - shell: Run shell"
@echo " - self-test: Run cognitive analyses self-test"
@echo " - self-test-halstead: Run cognitive analyses self-test"
@echo " - build-phar: Build phar"
run-tests:
@echo "Running tests"
docker compose run php composer test
run-infection:
@echo "Running infection mutation testing"
docker compose run php composer infection
coverage-text:
@echo "Running coverage text"
docker compose run php composer test-coverage
coverage-html:
@echo "Running coverage text"
docker compose run php composer test-coverage-html
all:
@echo "Running CS-Checker, Static Analyser and Tests"
docker compose run -T php composer all
shell:
@echo "Running shell"
docker compose run --service-ports --entrypoint /bin/bash php
self-test:
@echo "Running cognitive analyses self-test"
docker compose run php bin/phpcca analyse src
build-phar:
@echo "Building phar"
docker compose run php composer build-phar