-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
50 lines (35 loc) · 1.55 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
.PHONY: asset auto-review cache coverage cs database infection integration it stan test test-env unit
it: cs stan test
asset:
yarn install
yarn run production
auto-review: vendor
SYMFONY_DEPRECATIONS_HELPER=disabled vendor/bin/phpunit --testsuite auto-review
cache: vendor
bin/console cache:clear --env=testing
coverage: vendor
if [ $(type) = "html" ]; then SYMFONY_DEPRECATIONS_HELPER=disabled vendor/bin/phpunit --testsuite unit --coverage-html coverage; else vendor/bin/phpunit --testsuite unit --coverage-text; fi;
cs: vendor
vendor/bin/php-cs-fixer fix --verbose --diff
database: test-env vendor
bin/console doctrine:database:drop --env=testing --force
bin/console doctrine:database:create --env=testing
bin/console doctrine:migrations:migrate --env=testing -n
doctrine:
bin/console doctrine:schema:update --env=testing --force
bin/console doctrine:schema:validate --env=testing
bin/console doctrine:mapping:info --env=testing
infection: vendor database
SYMFONY_DEPRECATIONS_HELPER=disabled CFP_ENV=testing php -d zend_extension=xdebug.so vendor/bin/infection
integration: test-env vendor database cache
SYMFONY_DEPRECATIONS_HELPER=disabled CFP_ENV=testing vendor/bin/phpunit --testsuite integration
static: vendor
vendor/bin/psalm
test: auto-review doctrine integration unit
test-env:
if [ ! -f "config/testing.yml" ]; then cp config/testing.yml.dist config/testing.yml; fi
unit: vendor
SYMFONY_DEPRECATIONS_HELPER=disabled CFP_ENV=testing vendor/bin/phpunit --testsuite unit
vendor: composer.json composer.lock
composer validate
composer install