-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (41 loc) · 1.29 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
serve:
@symfony serve --dir=tests/Application --daemon
server.start: serve
server.stop:
@symfony server:stop --dir=tests/Application
frontend.install:
@cd tests/Application && npm install
frontend.build:
@cd tests/Application && npm run build
frontend.setup: frontend.install frontend.build
setup:
@composer update
@make frontend.setup
@cd tests/Application && bin/console assets:install
@cd tests/Application && bin/console doctrine:database:create --if-not-exists
@cd tests/Application && bin/console doctrine:migrations:migrate -n
@cd tests/Application && bin/console sylius:fixtures:load -n
@cd tests/Application && APP_ENV=test bin/console doctrine:database:create --if-not-exists
@cd tests/Application && APP_ENV=test bin/console doctrine:migrations:migrate -n
@cd tests/Application && APP_ENV=test bin/console sylius:fixtures:load -n
ecs:
@vendor/bin/ecs
ecs.fix:
@vendor/bin/ecs --fix
phpstan:
@vendor/bin/phpstan
phpunit:
@make phpunit.api
@make phpunit.e2e
@make phpunit.unit
phpunit.api:
@vendor/bin/phpunit --testsuite api
phpunit.e2e:
@vendor/bin/phpunit --testsuite e2e
phpunit.unit:
@vendor/bin/phpunit --testsuite unit
phpunit.contract_external:
@vendor/bin/phpunit --testsuite contract_external
qa.static-analysis: ecs phpstan
qa.tests: phpunit
ci: qa.static-analysis qa.tests