mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01:00
Optimized code and removed shellcheck errors
This commit is contained in:
parent
62cad9bca0
commit
1ec19bbbbe
@ -1,2 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/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
|
#!/bin/bash
|
||||||
(
|
cd "$(dirname "$(readlink -f "${0}")")/" &&
|
||||||
cd $(dirname $(readlink -f ${0}))/;
|
bash ./copy-configuration.sh &&
|
||||||
bash ./copy-configuration.sh
|
cd ../docker-symfony &&
|
||||||
cd ../docker-symfony;
|
docker-compose build &&
|
||||||
docker-compose build;
|
docker-compose up -d
|
||||||
docker-compose up -d;
|
|
||||||
)
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/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
|
||||||
|
@ -1,2 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/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
|
#!/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
|
#!/bin/bash
|
||||||
# Copies the configuration files
|
# Copies the configuration files
|
||||||
cd $(dirname $(readlink -f ${0}))/../;
|
cd "$(dirname "$(readlink -f "${0}")")/../" || exit 1
|
||||||
cp -v .env.dist docker-symfony/.env;
|
cp -v .env.dist docker-symfony/.env
|
||||||
cp -v ./application/phpunit.xml.dist ./application/phpunit.xml;
|
cp -v ./application/phpunit.xml.dist ./application/phpunit.xml
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/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
|
#!/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
|
#!/bin/bash
|
||||||
(
|
cd "$(dirname "$(readlink -f "${0}")")" &&
|
||||||
cd $(dirname $(readlink -f ${0}));
|
bash ./submodule-init.sh &&
|
||||||
bash ./submodule-init.sh
|
bash ./build.sh &&
|
||||||
bash ./build.sh
|
bash ./composer-update.sh &&
|
||||||
bash ./composer-update.sh
|
bash ./schema-update.sh &&
|
||||||
bash ./schema-update.sh
|
bash ./load-fixtures.sh
|
||||||
bash ./load-fixtures.sh
|
|
||||||
)
|
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/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
|
#!/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
|
#!/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
|
#!/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
|
#!/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
|
#!/bin/bash
|
||||||
cd $(dirname $(readlink -f ${0}))/;
|
cd "$(dirname "$(readlink -f "${0}")")/" &&
|
||||||
shellcheck ./*.sh
|
shellcheck ./*.sh
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/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
|
#!/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
|
#!/bin/bash
|
||||||
(
|
cd "$(dirname "$(readlink -f "${0}")")/../" &&
|
||||||
cd $(dirname $(readlink -f ${0}))/../;
|
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
)
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
(
|
cd "$(dirname "$(readlink -f "${0}")")/../" &&
|
||||||
cd $(dirname $(readlink -f ${0}))/../;
|
git submodule sync &&
|
||||||
git submodule sync;
|
git submodule foreach git pull origin master
|
||||||
git submodule foreach git pull origin master;
|
|
||||||
)
|
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/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
|
#!/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 &&
|
||||||
bash ./test.sh &&
|
bash ./test.sh &&
|
||||||
bash ./test-code-format.sh
|
bash ./test-code-format.sh
|
||||||
)
|
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/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
|
#!/bin/sh
|
||||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php rm -vr var)
|
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1
|
||||||
(cd $(dirname $(readlink -f ${0}))/../docker-symfony/ && docker-compose exec php rm -vr vendor )
|
docker-compose exec php rm -vr var
|
||||||
(cd $(dirname $(readlink -f ${0}))/ && bash cleanup-ignored.sh)
|
docker-compose exec php rm -vr vendor
|
||||||
|
cd "$(dirname "$(readlink -f "${0}")")/" && bash cleanup-ignored.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user