-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
101 lines (97 loc) · 3.29 KB
/
docker-compose.test.yml
File metadata and controls
101 lines (97 loc) · 3.29 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
services:
test-php81:
image: php:8.1-cli
working_dir: /app
environment:
- PHPUNIT_RUNNING=1
- COMPOSER_MEMORY_LIMIT=-1
volumes:
- .:/app
command: >
bash -c "
apt-get update && apt-get install -y git unzip &&
git config --global --add safe.directory /app &&
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer &&
composer install --no-interaction --prefer-dist &&
echo '🧪 Testing PHP 8.1...' &&
php -d memory_limit=512M vendor/bin/phpstan analyse --no-progress &&
composer test:ci &&
echo '✅ PHP 8.1 passed'
"
test-php82:
image: php:8.2-cli
working_dir: /app
environment:
- PHPUNIT_RUNNING=1
- COMPOSER_MEMORY_LIMIT=-1
volumes:
- .:/app
command: >
bash -c "
apt-get update && apt-get install -y git unzip &&
git config --global --add safe.directory /app &&
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer &&
composer install --no-interaction --prefer-dist &&
echo '🧪 Testing PHP 8.2...' &&
php -d memory_limit=512M vendor/bin/phpstan analyse --no-progress &&
composer test:ci &&
echo '✅ PHP 8.2 passed'
"
test-php83:
image: php:8.3-cli
working_dir: /app
environment:
- PHPUNIT_RUNNING=1
- COMPOSER_MEMORY_LIMIT=-1
volumes:
- .:/app
command: >
bash -c "
apt-get update && apt-get install -y git unzip &&
git config --global --add safe.directory /app &&
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer &&
composer install --no-interaction --prefer-dist &&
echo '🧪 Testing PHP 8.3...' &&
php -d memory_limit=512M vendor/bin/phpstan analyse --no-progress &&
composer test:ci &&
echo '✅ PHP 8.3 passed'
"
test-php84:
image: php:8.4-cli
working_dir: /app
environment:
- PHPUNIT_RUNNING=1
- COMPOSER_MEMORY_LIMIT=-1
volumes:
- .:/app
command: >
bash -c "
apt-get update && apt-get install -y git unzip &&
git config --global --add safe.directory /app &&
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer &&
composer install --no-interaction --prefer-dist &&
echo '🧪 Testing PHP 8.4...' &&
php -d memory_limit=512M vendor/bin/phpstan analyse --no-progress &&
composer test:ci &&
echo '✅ PHP 8.4 passed'
"
# Quality metrics service
quality-check:
image: php:8.4-cli
working_dir: /app
environment:
- PHPUNIT_RUNNING=1
- COMPOSER_MEMORY_LIMIT=-1
volumes:
- .:/app
command: >
bash -c "
apt-get update && apt-get install -y git unzip &&
git config --global --add safe.directory /app &&
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer &&
composer install --no-interaction --prefer-dist &&
echo '📊 Quality Metrics...' &&
php benchmarks/QuietBenchmark.php &&
composer test:coverage &&
echo '✅ Quality metrics generated'
"