-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
110 lines (83 loc) · 2.71 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
DC=docker-compose
PHP=$(DC) exec php
DOCKER-EXEC=$(DC) exec
COMPOSER=$(DOCKER-EXEC) php composer
SF=$(PHP) bin/console
test: validate test-phpspec analyse test-phpunit test-installer test-fixtures test-behat test-doctrine-migrations
.PHONY: test
analyse: test-phpstan test-psalm
.PHONY: analyse
validate: validate-composer validate-composer-security validate-doctrine-schema validate-twig validate-yaml-files validate-yarn-packages
.PHONY: validate
test-behat: test-behat-without-javascript test-behat-with-javascript test-behat-with-cli
.PHONY: test-behat
validate-composer:
composer validate --strict
.PHONY: validate-composer
validate-composer-security:
vendor/bin/security-checker security:check
.PHONY: validate-composer-security
validate-doctrine-schema:
bin/console doctrine:schema:validate -vvv
.PHONY: validate-doctrine-schema
validate-twig:
bin/console lint:twig templates
.PHONY: validate-twig
validate-yaml-files:
bin/console lint:yaml config --parse-tags
.PHONY: validate-yaml-files
validate-yarn-packages:
yarn check
.PHONY: validate-yarn-packages
test-phpspec:
phpdbg -qrr vendor/bin/phpspec run --no-interaction -f dot
.PHONY: test-phpspec
test-phpstan:
vendor/bin/phpstan analyse -c phpstan.neon -l 1 src
.PHONY: test-phpstan
test-psalm:
vendor/bin/psalm --show-info=false
.PHONY: test-psalm
test-phpunit:
vendor/bin/phpunit
.PHONY: test-phpunit
test-installer:
bin/console app:install --no-interaction -vvv
.PHONY: test-installer
test-behat-with-cli:
vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@cli && ~@todo"
.PHONY: test-behat-with-cli
test-doctrine-migrations:
bin/console doctrine:migrations:migrate first --no-interaction
bin/console doctrine:migrations:migrate latest --no-interaction
.PHONY: test-doctrine-migrations
test-prod-requirements:
composer dump-env prod
composer install --no-dev --no-interaction --prefer-dist --no-scripts
.PHONY: test-prod-requirements
test-behat-without-javascript:
vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript && ~@todo && ~@cli"
.PHONY: test-behat-without-javascript
test-behat-with-javascript:
vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@javascript && ~@todo && ~@cli"
.PHONY: test-behat-with-javascript
test-fixtures:
bin/console sylius:fixtures:load default --no-interaction
.PHONY: test-fixtures
init-docker-stack:
$(DC) up -d
.PHONY: init-docker
remove-docker-stack:
$(DC) stop && $(DC) rm -v -f
.PHONY: remove-docker-stack
composer-install:
$(COMPOSER) install
.PHONY: composer-install
monofony-install:
monofony-install:init-docker-stack composer-install
$(SF) app:install
$(PHP) yarn install && $(PHP) yarn build
.PHONY: monofony-install
open-php:
$(PHP) sh
.PHONY: open-php