-
-
Notifications
You must be signed in to change notification settings - Fork 945
/
update-deps.sh
executable file
·19 lines (14 loc) · 781 Bytes
/
update-deps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Remove all running containers
docker compose down -v
# Update Docker images
docker compose build --no-cache --pull
# Update deps
docker compose run php /bin/sh -c 'composer update; composer outdated'
docker compose run pwa /bin/sh -c 'pnpm install; pnpm update; pnpm outdated'
# Update Symfony recipes
cd api
composer recipes:update
echo 'Run `git diff` and carefully inspect the changes made by the recipes.'
echo 'Run `docker compose up --wait --force-recreate` now and check that everything is fine!'
echo 'Run `docker compose exec php /bin/sh -c ''bin/console -e test doctrine:database:create ; bin/console -e test doctrine:migrations:migrate --no-interaction ; bin/phpunit ; bin/console -e test doctrine:schema:validate''` to check that the tests are green.'