laminas / laminas-db

Database abstraction layer, SQL abstraction, result set abstraction, and RowDataGateway and TableDataGateway implementations
https://docs.laminas.dev/laminas-db/
BSD 3-Clause "New" or "Revised" License
119 stars 66 forks source link

Replace Vagrant VM with Docker containers #217

Open fabiang opened 2 years ago

fabiang commented 2 years ago

closes #209

ZVanoZ commented 2 years ago
# Go to "laminas-db" sources
$ cd laminas-db

# Config for all tests. Copy "phpunit.xml.dist" to "phpunit.xml" in directory "laminas-db".
$ cp phpunit.xml.dist phpunit.xml

# Config for check and fix code-style, create "phpcs.xml"  
$ cp phpcs.xml.dist phpcs.xml

# Update libraries
$ docker run --rm -it --volume $(pwd):/app zvanoz/laminas-db-test-by-docker:74 composer update

# Check code, using rules laminas comunity.
$ docker run --rm -it --volume $(pwd):/app zvanoz/laminas-db-test-by-docker:74 composer cs-check -vvv

# Auto-fix code, using rules laminas comunity.
$ docker run --rm -it --volume $(pwd):/app zvanoz/laminas-db-test-by-docker:74 composer cs-fix -vvv