Added shellcheck.sh and optimized scripts

This commit is contained in:
Kevin Frantz 2019-01-05 11:58:41 +01:00
parent 69284246aa
commit dc779808bc
21 changed files with 25 additions and 2 deletions

View File

@ -1 +1,2 @@
#!/bin/bash
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php /bin/bash) (cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php /bin/bash)

View File

@ -1,3 +1,4 @@
#!/bin/bash
( (
cd $(dirname $(readlink -f ${0}))/; cd $(dirname $(readlink -f ${0}))/;
bash ./copy-configuration.sh bash ./copy-configuration.sh

View File

@ -1,2 +1,3 @@
#!/bin/bash
echo "Untracked and ignored files will be deleted..." echo "Untracked and ignored files will be deleted..."
(cd $(dirname $(readlink -f ${0}))/../ && git clean -fXd) (cd $(dirname $(readlink -f ${0}))/../ && git clean -fXd)

View File

@ -1 +1,2 @@
#!/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)

View File

@ -1 +1,2 @@
#!/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)

View File

@ -1 +1,2 @@
#!/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/ && docker-compose exec php php vendor/bin/php-cs-fixer fix .)

View File

@ -1 +1,2 @@
#!/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/ && docker-compose exec php php -d memory_limit=128M /var/www/symfony/vendor/bin/phpunit --coverage-html var/test-coverage-report)

View File

@ -1,3 +1,4 @@
#!/bin/bash
( (
cd $(dirname $(readlink -f ${0})); cd $(dirname $(readlink -f ${0}));
bash ./submodule-init.sh bash ./submodule-init.sh

View File

@ -1 +1,2 @@
#!/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/ && docker-compose exec php php bin/console doctrine:fixtures:load -n)

View File

@ -1 +1,2 @@
#!/bin/bash
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec db mysql -proot -u root) (cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec db mysql -proot -u root)

View File

@ -1 +1,2 @@
#!/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/ && docker-compose exec php php bin/console debug:router);

View File

@ -1 +1,2 @@
#!/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/ && docker-compose exec php php bin/console doctrine:schema:update --force)

View File

@ -1 +1,2 @@
#!/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)

View File

@ -0,0 +1,3 @@
#!/bin/bash
cd $(dirname $(readlink -f ${0}))/;
shellcheck ./*.sh

View File

@ -1 +1,2 @@
#!/bin/bash
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose up -d) (cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose up -d)

View File

@ -1 +1,2 @@
#!/bin/bash
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose stop) (cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose stop)

View File

@ -1,3 +1,4 @@
#!/bin/bash
( (
cd $(dirname $(readlink -f ${0}))/../; cd $(dirname $(readlink -f ${0}))/../;
git submodule update --init --recursive git submodule update --init --recursive

View File

@ -1,3 +1,4 @@
#!/bin/bash
( (
cd $(dirname $(readlink -f ${0}))/../; cd $(dirname $(readlink -f ${0}))/../;
git submodule sync; git submodule sync;

View File

@ -1 +1,2 @@
#!/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/ && docker-compose exec php php ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ./src)

View File

@ -1,3 +1,4 @@
#!/bin/bash
(cd $(dirname $(readlink -f ${0}))/ && (cd $(dirname $(readlink -f ${0}))/ &&
bash ./clear.sh && bash ./clear.sh &&
bash ./schema-validate.sh && bash ./schema-validate.sh &&

View File

@ -1 +1,2 @@
#!/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)