-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·70 lines (46 loc) · 1.96 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
include .env
RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
sh:
@docker-compose exec app sh
ps:
@docker-compose ps
restart: down upd
up:
@docker-compose up
upd:
@docker-compose up -d
down:
@docker-compose down
build:
@docker-compose pull
@docker-compose up -d --build
@docker-compose exec app composer install
comp\:da:
@docker-compose exec app composer dump-autoload
comp\:validate:
@docker-compose exec app composer validate --no-check-all --strict
comp\:install:
@docker-compose exec app composer install $(RUN_ARGS)
comp\:update:
@docker-compose exec app composer update $(RUN_ARGS)
comp\:req:
@docker-compose exec app composer require $(RUN_ARGS)
comp\:req-dev:
@docker-compose exec app composer require --dev $(RUN_ARGS)
comp\:rem:
@docker-compose exec app composer remove $(RUN_ARGS)
ch\:install:
@docker-compose exec app ./vendor/bin/captainhook install --run-mode=docker --run-exec="docker-compose exec -T app"
test\:run:
@docker-compose exec app ./vendor/bin/phpunit --testdox --colors=never --coverage-xml .artifacts/.phpunit/phpunit-coverage-report.xml --coverage-html .artifacts/.phpunit/phpunit-coverage-report.html --coverage-text --log-junit .artifacts/.phpunit/report.xml --disallow-test-output
test\:cov:
@docker-compose exec app php check-code-coverage.php .artifacts/.phpunit/phpunit-coverage-report.xml/index.xml 100
synt\:fix:
@docker-compose exec app ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --using-cache=no -v --allow-risky=yes
synt\:check:
@docker-compose exec app ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --allow-risky=yes --using-cache=no -v
php-md:
@docker-compose exec app ./vendor/bin/phpmd src,tests text phpmd.ruleset.xml > .artifacts/phpmd-report.json
php-stan:
@docker-compose exec app ./vendor/bin/phpstan analyse --memory-limit=512M --no-progress --error-format gitlab > .artifacts/phpstan-report.json
check: synt\:check php-md php-stan test\:run test\:cov