Skip to content

Commit

Permalink
Added perf tests image and fixed php version to 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
serbanghita committed Oct 28, 2023
1 parent ab2071f commit b73a5bd
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,23 @@ services:
- .:/app

runUnitTests:
image: php:8.0.3-fpm-alpine3.13
image: php:8.3-rc-alpine3.18
working_dir: /app
command: >
/bin/sh -c "vendor/bin/phpunit -v -c tests/phpunit.xml --coverage-text --strict-coverage --stop-on-risky"
ports:
- "8000:8000"
volumes:
- .:/app

runPerfTests:
image: php:8.3-rc-alpine3.18
working_dir: /app
command: >
/bin/sh -c "vendor/bin/phpbench run tests/Benchmark/MobileDetectBench.php --retry-threshold=1 --iterations=10 --revs=1000 --report=aggregate"
volumes:
- .:/app

runLinting:
image: php:8.0.3-fpm-alpine3.13
image: php:8.3-rc-alpine3.18
working_dir: /app
command: >
/bin/sh -c "vendor/bin/phpcs; vendor/bin/phpcbf"
Expand All @@ -33,11 +39,13 @@ services:
- .:/app

generateModel:
image: php:8.0.3-fpm-alpine3.13
image: php:8.3-rc-alpine3.18
working_dir: /app
command: >
/bin/sh -c "php ./scripts/export_to_json.php"
ports:
- "8000:8000"
volumes:
- .:/app


0 comments on commit b73a5bd

Please sign in to comment.