Skip to content

Commit

Permalink
Move dev scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
galeaspablo committed Sep 23, 2024
1 parent 8aa14a0 commit e8ac6c3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
set -e

cd ../
docker run --rm -v $(pwd):/app composer:2.2.24 install --ignore-platform-reqs
cd development-environment
docker compose down
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
set -e

cd development-environment
echo "Checking dependency tracking for general dependencies"
docker exec -it php-all-services-test "php" "vendor/bin/deptrac" "analyze" "--config-file" "depfile_general.yml"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
set -e

cd development-environment
if docker exec -it php-all-services-test "php" "vendor/bin/php-cs-fixer" "fix" "--config=.php-cs-fixer.php-highest.php" "--allow-risky=yes" "--dry-run" | grep 'src'; then
echo "Styling in ./src failed. To fix run ./dev_linter_fix.sh"
exit 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -e

cd development-environment
docker exec -it php-all-services-test "php" "vendor/bin/php-cs-fixer" "fix" "--config=.php-cs-fixer.php-highest.php" "--allow-risky=yes"
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
set -e

cd development-environment
# Allows you to do filters as needed
docker exec -it php-all-services-test "php" "vendor/bin/phpunit" "$@"
docker exec -it php-all-services-test "php" "vendor/bin/phpunit" "$@"

echo "All tests passed!!!"
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
set -e

cd development-environment
echo "PHPStan for /srv/src"
docker exec -it php-all-services-test "php" "vendor/bin/phpstan" "analyse" "--level" "max" "-c" "phpstan.src.neon" "-vvv"
docker exec -it php-all-services-test "php" "vendor/bin/phpstan" "analyse" "--level" "max" "-c" "phpstan.src.neon" "-vvv"

echo "All type checks succesful!!!"
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -e

cd development-environment
docker compose down

0 comments on commit e8ac6c3

Please sign in to comment.