@@ -4,44 +4,44 @@ help: ## Displays this list of targets with descriptions
4
4
5
5
.PHONY : code-style
6
6
code-style :
7
- docker run -it --rm -v${PWD} :/opt/project -w /opt/project phpdoc/phpcs-ga:latest -d memory_limit=1024M -s
7
+ docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:8.1-cli vendor/bin/phpcs
8
8
9
9
.PHONY : fix-code-style
10
10
fix-code-style :
11
- docker run -it --rm -v${PWD} :/opt/project -w /opt/project phpdoc/phpcs-ga:latest phpcbf
11
+ docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:8.1-cli vendor/bin/ phpcbf
12
12
13
13
.PHONY : static-code-analysis
14
14
static-code-analysis : vendor # # Runs a static code analysis with phpstan/phpstan and vimeo/psalm
15
- docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:7.4 vendor/bin/phpstan --configuration=phpstan.neon
16
- docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:7.4 vendor/bin/psalm
15
+ docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:8.1-cli vendor/bin/phpstan --configuration=phpstan.neon
16
+ docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:8.1-cli vendor/bin/psalm
17
17
18
18
.PHONY : test
19
19
test : test-unit test-functional # # Runs all test suites with phpunit/phpunit
20
- docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:7.4 vendor/bin/phpunit
20
+ docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:8.1-cli vendor/bin/phpunit
21
21
22
22
.PHONY : test-unit
23
23
test-unit : # # Runs unit tests with phpunit/phpunit
24
- docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:7.4 vendor/bin/phpunit --testsuite=unit
24
+ docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:8.1-cli vendor/bin/phpunit --testsuite=unit
25
25
26
26
.PHONY : test-functional
27
27
test-functional : # # Runs unit tests with phpunit/phpunit
28
- docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:7.4 vendor/bin/phpunit --testsuite=functional
28
+ docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:8.1-cli vendor/bin/phpunit --testsuite=functional
29
29
30
30
.PHONY : dependency-analysis
31
31
dependency-analysis : vendor # # Runs a dependency analysis with maglnet/composer-require-checker
32
- docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:7.4 .phive/composer-require-checker check --config-file=/opt/project/composer-require-checker.json
32
+ docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:8.1-cli .phive/composer-require-checker check --config-file=/opt/project/composer-require-checker.json
33
33
34
34
vendor : composer.json composer.lock
35
35
composer validate --no-check-publish
36
36
composer install --no-interaction --no-progress
37
37
38
38
.PHONY : benchmark
39
39
benchmark :
40
- docker run -it --rm -v${CURDIR} :/opt/project -w /opt/project php:7.4 -cli tools/phpbench run
40
+ docker run -it --rm -v${CURDIR} :/opt/project -w /opt/project php:8.1 -cli tools/phpbench run
41
41
42
42
.PHONY : rector
43
43
rector : # # Refactor code using rector
44
- docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:7.4 vendor/bin/rector process
44
+ docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:8.1-cli vendor/bin/rector process
45
45
46
46
.PHONY : pre-commit-test
47
47
pre-commit-test : fix-code-style test code-style static-code-analysis
0 commit comments