@@ -30,16 +30,15 @@ help:
30
30
@grep -E ' ^[-a-zA-Z0-9_\.\/]+:.*?## .*$$' $(MAKEFILE_LIST ) | awk ' BEGIN {FS = ":.*?## "}; {printf " \033[32m%-15s\033[0m\t%s\n", $$1, $$2}'
31
31
32
32
33
- build : tests-all cs-check # # Run all necessary stuff before commit.
33
+ build : tests-all cs-check phpstan # # Run all necessary stuff before commit.
34
34
35
35
36
- tests : CMD=composer tests -- $( ARGS )
37
- tests : docker-run # # Run tests on recent PHP version. Pass args to phpunit via ARGS=""
36
+ tests : # # Run tests on recent PHP version. Pass args to phpunit via ARGS=""
37
+ @ $( call DOCKER_RUN, $( COVERAGE_PHP ) ,composer tests -- $( ARGS ) )
38
38
39
39
40
- tests-coverage : CMD=composer tests-coverage -- $(ARGS )
41
40
tests-coverage : # # Runs tests and creates ./clover.xml. Pass args to phpunit via ARGS=""
42
- @$(call DOCKER_RUN,$(COVERAGE_PHP ) ,$( CMD ) )
41
+ @$(call DOCKER_RUN,$(COVERAGE_PHP ) ,composer tests-coverage -- $( ARGS ) )
43
42
44
43
45
44
tests-all : # # Run tests on all supported PHP versions. Pass args to phpunit via ARGS=""
@@ -52,16 +51,20 @@ tests-all: ## Run tests on all supported PHP versions. Pass args to phpunit via
52
51
done
53
52
54
53
55
- cs-check : CMD=composer cs-check
56
- cs-check : docker-run # # Check code style
54
+ cs-check : # # Check code style
55
+ @ $( call DOCKER_RUN, $( LATEST_PHP ) ,composer cs-check)
57
56
58
57
59
- cs-fix : CMD=composer cs-fix
60
- cs-fix : docker-run # # Fix code style
58
+ phpstan : # # Run phpstan
59
+ @ $( call DOCKER_RUN, $( LATEST_PHP ) ,composer phpstan)
61
60
62
61
63
- performance-tests : CMD=composer performance-tests
64
- performance-tests : docker-run # # Run performance tests
62
+ cs-fix : # # Fix code style
63
+ @$(call DOCKER_RUN,$(LATEST_PHP ) ,composer cs-fix)
64
+
65
+
66
+ performance-tests : # # Run performance tests
67
+ @$(call DOCKER_RUN,$(LATEST_PHP ) ,composer performance-tests)
65
68
66
69
67
70
release : .env build
0 commit comments