forked from forumify/forumify-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (21 loc) · 658 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (21 loc) · 658 Bytes
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
.PHONY: quality
quality:
@./vendor/bin/phpcs
@./vendor/bin/phpstan
.PHONY: quality-fix
quality-fix:
@./vendor/bin/phpcbf
.PHONY: tests
tests:
make setup-tests
make run-tests
.PHONY: setup-tests
setup-tests:
@cd tests && php bin/console doctrine:database:drop --force --env=test
@cd tests && php bin/console doctrine:database:create --env=test
@cd tests && php bin/console doctrine:migrations:migrate --no-interaction --env=test
@cd tests && php bin/console forumify:platform:setting -k forumify.platform_installed --value true
@cd tests && php bin/console forumify:plugins:refresh --env=test
.PHONY: run-tests
run-tests:
@./vendor/bin/phpunit