Skip to content

Commit

Permalink
feature #6398 DDEV enhancements (a-r-m-i-n)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 4.x branch.

Discussion
----------

DDEV enhancements

This PR provides some updates for the shipped DDEV environment:

* Updated PHP to 8.3
* Updated Symfony to 7.1.*
* Provide new `ddev run-tests` command, to execute unit tests

Commits
-------

15da6c9 DDEV enhancements
  • Loading branch information
javiereguiluz committed Aug 2, 2024
2 parents 361fefa + 15da6c9 commit 852c7c1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .ddev/commands/web/run-tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

cd ../easyadminbundle
composer install
vendor/bin/simple-phpunit -v
4 changes: 2 additions & 2 deletions .ddev/commands/web/setup
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Installing Symfony Framework
composer create-project symfony/skeleton:"7.0.*" -n
composer create-project symfony/skeleton:"7.1.*" -n
mv -f ./skeleton/* ./
mv -f ./skeleton/.env ./
mv -f ./skeleton/.gitignore ./
Expand All @@ -21,4 +21,4 @@ cp -r ../easyadminbundle/.ddev/example/Form/* src/Form/

# Initialize DB
echo 'DATABASE_URL="mysql://db:db@db:3306/db?serverVersion=10.4.0-MariaDB&charset=utf8mb4"' >> .env.local
./bin/console doc:sch:up --complete --force
./bin/console doc:sch:up --force
2 changes: 1 addition & 1 deletion .ddev/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: easy-admin-bundle
type: php
docroot: public
no_project_mount: true
php_version: "8.2"
php_version: "8.3"
webserver_type: apache-fpm
router_http_port: "80"
router_https_port: "443"
Expand Down
1 change: 0 additions & 1 deletion .ddev/docker-compose.web.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.6"
services:
web:
volumes:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ providing example entities and CRUD Controllers.
* Perform `ddev setup` which starts and provisions the web container
* EasyAdmin is available under the URL: https://easy-admin-bundle.ddev.site
* To (re-)build frontend assets perform `ddev build-assets`
* To run unit tests perform `ddev run-tests`

License
-------
Expand Down

0 comments on commit 852c7c1

Please sign in to comment.