-
Notifications
You must be signed in to change notification settings - Fork 4
/
JUSTFILE
39 lines (32 loc) · 988 Bytes
/
JUSTFILE
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
set dotenv-load := false
PHPUNIT := 'vendor/bin/phpunit -d xdebug.max_nesting_level=250 -d memory_limit=1024M'
# [DDEV] Initial project setup
setup:
ddev start
ddev composer install
# [DDEV] Run the application (after initial setup)
up:
ddev start
# [DDEV] Stop the application
down:
ddev stop
# [DDEV] Enter webserver bash
@ssh:
ddev ssh
# [DDEV] Lint files
@lint:
ddev exec "./vendor/bin/ecs check --fix"
ddev exec "./vendor/bin/php-cs-fixer fix"
ddev exec "./vendor/bin/rector process"
# [DDEV] Run unit and integration tests
@test:
echo "Running unit and integration tests"; \
ddev exec vendor/bin/phpunit -d xdebug.max_nesting_level=250 -d memory_limit=1024M
# [DDEV] Run tests and create code-coverage report
@coverage:
echo "Running unit and integration tests"; \
echo "Once completed, the generated code coverage report can be found under ./reports)"; \
ddev xdebug;\
ddev exec XDEBUG_MODE=coverage {{PHPUNIT}};\
ddev xdebug off
xdg-open reports/index.html