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:
@@ -7,3 +7,9 @@ services:
|
|||||||
command: bash -c "composer install && ./vendor/bin/phpunit -vvv"
|
command: bash -c "composer install && ./vendor/bin/phpunit -vvv"
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/project
|
- ./:/project
|
||||||
|
analysis:
|
||||||
|
build: ./
|
||||||
|
working_dir: /project
|
||||||
|
command: bash -c "composer install && ./vendor/bin/phpstan analyze --level=4 ./src"
|
||||||
|
volumes:
|
||||||
|
- ./:/project
|
||||||
|
14
readme.md
14
readme.md
@@ -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/).
|
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
|
## License
|
||||||
|
|
||||||
Intervention Image is licensed under the [MIT License](http://opensource.org/licenses/MIT).
|
Intervention Image is licensed under the [MIT License](http://opensource.org/licenses/MIT).
|
||||||
|
Reference in New Issue
Block a user