-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (40 loc) · 1.07 KB
/
Makefile
File metadata and controls
54 lines (40 loc) · 1.07 KB
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
51
52
53
54
.PHONY: build up down test test-long phpstan psalm rector fix-cs install update shell logs clean
# Build the Docker image
build:
docker compose build
# Start the services
up:
docker compose up -d
# Stop the services
down:
docker compose down
# Install dependencies
install:
docker compose run --rm php composer install
# Update dependencies
update:
docker compose run --rm php composer update
# Run all tests except the long ones
test: up
docker compose exec php vendor/bin/phpunit --exclude-group=long
# Run long tests specifically
test-long: up
docker compose exec php vendor/bin/phpunit --group=long
phpstan: up
docker compose exec php vendor/bin/phpstan --memory-limit=2G
psalm: up
docker compose exec php vendor/bin/psalm --memory-limit=2G
rector: up
docker compose exec php vendor/bin/rector
fix-cs: up
docker compose exec php vendor/bin/php-cs-fixer fix -v
# Open a shell in the PHP container
shell:
docker compose exec php bash
# View logs
logs:
docker compose logs -f php
# Clean up containers and volumes
clean:
docker compose down -v
docker compose rm -f