-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 701 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (25 loc) · 701 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
26
27
28
29
30
31
32
33
.PHONY: up down build test lint analyze bash migrate shell
# Start Docker environment
up:
docker-compose up -d
# Stop Docker environment
down:
docker-compose down
# Build containers
build:
docker-compose build
# Run PHPUnit tests
test:
docker-compose exec app vendor/bin/phpunit --colors=always
# Run PHP_CodeSniffer
lint:
docker-compose exec app vendor/bin/phpcs --standard=PSR12 app config routes public
# Run PHPStan static analysis
analyze:
docker-compose exec app vendor/bin/phpstan analyse app config routes public --level=8
# Access PHP container shell
bash:
docker-compose exec app bash
# Run dummy migrate command
migrate:
docker-compose exec app php public/index.php migrate