mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 15:06:51 +01:00
Optimized code and removed shellcheck errors
This commit is contained in:
parent
62cad9bca0
commit
1ec19bbbbe
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php /bin/bash)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1
|
||||
docker-compose exec php /bin/bash
|
||||
|
@ -1,8 +1,6 @@
|
||||
#!/bin/bash
|
||||
(
|
||||
cd $(dirname $(readlink -f ${0}))/;
|
||||
bash ./copy-configuration.sh
|
||||
cd ../docker-symfony;
|
||||
docker-compose build;
|
||||
docker-compose up -d;
|
||||
)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/" &&
|
||||
bash ./copy-configuration.sh &&
|
||||
cd ../docker-symfony &&
|
||||
docker-compose build &&
|
||||
docker-compose up -d
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
echo "Untracked and ignored files will be deleted..."
|
||||
(cd $(dirname $(readlink -f ${0}))/../ && git clean -fXd)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../" &&
|
||||
git clean -fXd
|
||||
|
@ -1,2 +1,6 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php php /var/www/symfony/bin/console cache:clear && docker-compose exec php php /var/www/symfony/bin/console cache:clear --env=prod)
|
||||
(
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" &&
|
||||
docker-compose exec php php /var/www/symfony/bin/console cache:clear &&
|
||||
docker-compose exec php php /var/www/symfony/bin/console cache:clear --env=prod
|
||||
)
|
||||
|
@ -1,2 +1,6 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/&& docker-compose exec php composer install && docker-compose exec php composer update)
|
||||
(
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" &&
|
||||
docker-compose exec php composer install &&
|
||||
docker-compose exec php composer update
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Copies the configuration files
|
||||
cd $(dirname $(readlink -f ${0}))/../;
|
||||
cp -v .env.dist docker-symfony/.env;
|
||||
cp -v ./application/phpunit.xml.dist ./application/phpunit.xml;
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../" || exit 1
|
||||
cp -v .env.dist docker-symfony/.env
|
||||
cp -v ./application/phpunit.xml.dist ./application/phpunit.xml
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php php vendor/bin/php-cs-fixer fix .)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1
|
||||
docker-compose exec php php vendor/bin/php-cs-fixer fix .
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php php -d memory_limit=128M /var/www/symfony/vendor/bin/phpunit --coverage-html var/test-coverage-report)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1
|
||||
docker-compose exec php php -d memory_limit=128M /var/www/symfony/vendor/bin/phpunit --coverage-html var/test-coverage-report
|
||||
|
@ -1,9 +1,7 @@
|
||||
#!/bin/bash
|
||||
(
|
||||
cd $(dirname $(readlink -f ${0}));
|
||||
bash ./submodule-init.sh
|
||||
bash ./build.sh
|
||||
bash ./composer-update.sh
|
||||
bash ./schema-update.sh
|
||||
bash ./load-fixtures.sh
|
||||
)
|
||||
cd "$(dirname "$(readlink -f "${0}")")" &&
|
||||
bash ./submodule-init.sh &&
|
||||
bash ./build.sh &&
|
||||
bash ./composer-update.sh &&
|
||||
bash ./schema-update.sh &&
|
||||
bash ./load-fixtures.sh
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php php bin/console doctrine:fixtures:load -n)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1
|
||||
docker-compose exec php php bin/console doctrine:fixtures:load -n
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec db mysql -proot -u root)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1
|
||||
docker-compose exec db mysql -proot -u root
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php php bin/console debug:router);
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1
|
||||
docker-compose exec php php bin/console debug:router
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php php bin/console doctrine:schema:update --force)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1
|
||||
docker-compose exec php php bin/console doctrine:schema:update --force
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php bin/console doctrine:schema:validate)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" &&
|
||||
docker-compose exec php bin/console doctrine:schema:validate
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
cd $(dirname $(readlink -f ${0}))/;
|
||||
cd "$(dirname "$(readlink -f "${0}")")/" &&
|
||||
shellcheck ./*.sh
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose up -d)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" &&
|
||||
docker-compose up -d
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose stop)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" &&
|
||||
docker-compose stop
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/bin/bash
|
||||
(
|
||||
cd $(dirname $(readlink -f ${0}))/../;
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../" &&
|
||||
git submodule update --init --recursive
|
||||
)
|
||||
|
@ -1,6 +1,4 @@
|
||||
#!/bin/bash
|
||||
(
|
||||
cd $(dirname $(readlink -f ${0}))/../;
|
||||
git submodule sync;
|
||||
git submodule foreach git pull origin master;
|
||||
)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../" &&
|
||||
git submodule sync &&
|
||||
git submodule foreach git pull origin master
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php php ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ./src)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1
|
||||
docker-compose exec php php ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ./src
|
||||
|
@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/ &&
|
||||
cd "$(dirname "$(readlink -f "${0}")")/" &&
|
||||
bash ./clear.sh &&
|
||||
bash ./schema-validate.sh &&
|
||||
bash ./test.sh &&
|
||||
bash ./test-code-format.sh
|
||||
)
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php php -d memory_limit=128M /var/www/symfony/vendor/bin/phpunit)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" &&
|
||||
docker-compose exec php php -d memory_limit=128M /var/www/symfony/vendor/bin/phpunit
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php rm -vr var)
|
||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php rm -vr vendor )
|
||||
(cd $(dirname $(readlink -f ${0}))/ && bash cleanup-ignored.sh)
|
||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1
|
||||
docker-compose exec php rm -vr var
|
||||
docker-compose exec php rm -vr vendor
|
||||
cd "$(dirname "$(readlink -f "${0}")")/" && bash cleanup-ignored.sh
|
||||
|
Loading…
Reference in New Issue
Block a user