1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-20 04:31:24 +02:00

Add static analyzer dev environment

This commit is contained in:
Oliver Vogel
2023-09-30 11:48:42 +02:00
parent 25572c0ef9
commit 20ff41b606
2 changed files with 20 additions and 0 deletions

View File

@@ -7,3 +7,9 @@ services:
command: bash -c "composer install && ./vendor/bin/phpunit -vvv"
volumes:
- ./:/project
analysis:
build: ./
working_dir: /project
command: bash -c "composer install && ./vendor/bin/phpstan analyze --level=4 ./src"
volumes:
- ./:/project

View File

@@ -54,6 +54,20 @@ composer require intervention/image
Learn the [basics](https://image.intervention.io/v3/basics/instantiation/) on how to use Intervention Image and more with the [official documentation](https://image.intervention.io/v3/).
## Development & Testing
With this package comes a Docker image to build a test suite and analysis container. To build this container you have to have Docker installed on your system. You can run all tests with this command.
```bash
docker-compose run --rm --build tests
```
Run the static analyzer on the code base.
```bash
docker-compose run --rm --build analysis
```
## License
Intervention Image is licensed under the [MIT License](http://opensource.org/licenses/MIT).