File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,26 @@ services:
1010 volumes :
1111 - .:/app
1212
13+ phpunit-8.0 :
14+ build :
15+ context : .
16+ dockerfile : docker/Dockerfile
17+ args :
18+ - PHP_VERSION=8.2
19+ command : ["sh", "-c", "php -v && vendor/bin/phpunit"]
20+ volumes :
21+ - .:/app
22+
23+ phpunit-7.4 :
24+ build :
25+ context : .
26+ dockerfile : docker/Dockerfile
27+ args :
28+ - PHP_VERSION=8.2
29+ command : ["sh", "-c", "php -v && vendor/bin/phpunit"]
30+ volumes :
31+ - .:/app
32+
1333 phpunit-7.2 :
1434 build :
1535 context : .
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- PHP_VERSIONS=(" 7.2" " 8.2" )
3+ # Check prerequisites
4+ if ! command -v docker & > /dev/null || ! command -v docker-compose & > /dev/null; then
5+ echo -e " \e[31mError: Docker and Docker Compose are required. Please install them before running this script.\e[0m"
6+ exit 1
7+ fi
8+
9+ PHP_VERSIONS=(" 7.2" " 7.4" " 8.0" " 8.2" )
410TESTS_PASSED=true
511
612function run_phpunit_tests() {
You can’t perform that action at this time.
0 commit comments