-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
94 lines (71 loc) · 2.76 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
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
fix:
vendor/bin/ecs check src tests spec config --fix
.PHONY: fix
validate: validate-coding-standard validate-composer validate-composer-security validate-doctrine-schema validate-twig validate-yaml-files validate-yarn-packages
.PHONY: validate
start-selenium:
vendor/bin/selenium-server-standalone -Dwebdriver.chrome.driver=./drivers/chromedriver
.PHONY: start-selenium
test-behat: test-behat-without-javascript test-behat-with-cli
.PHONY: test-behat
validate-coding-standard:
vendor/bin/ecs check src tests spec config
.PHONY: validate-coding-standard
validate-composer:
composer validate --strict
.PHONY: validate-composer
validate-composer-security:
/usr/local/bin/symfony security:check || "${HOME}"/cache/symfony 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:
APP_ENV=prod composer install --no-dev --no-interaction --prefer-dist --no-scripts --no-plugins
APP_ENV=prod bin/console cache:clear
APP_ENV=prod composer install --no-interaction --prefer-dist --no-scripts --no-plugins
.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" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@javascript&&~@todo&&~@cli" --rerun
.PHONY: test-behat-with-javascript
test-fixtures:
bin/console sylius:fixtures:load default --no-interaction
.PHONY: test-fixtures