Восстановлена работа php тестов

This commit is contained in:
ErickSkrauch
2016-10-03 02:01:21 +03:00
parent c162a46e62
commit 0468076548
3 changed files with 28 additions and 18 deletions

View File

@@ -2,7 +2,7 @@
cd /var/www/html
if [ "$1" = 'bash' ]
if [ "$1" = "bash" ] || [ "$1" = "composer" ]
then
exec "$@"
exit 0
@@ -28,6 +28,11 @@ then
cp -r ./../dist ./frontend/dist
fi
wait-for-it db:3306 -- "./yii migrate/up --interactive=0"
if [ "$YII_ENV" != "test" ]
then
wait-for-it db:3306 -- "php /var/www/html/yii migrate/up --interactive=0"
else
wait-for-it testdb:3306 -- "php /var/www/html/tests/codeception/bin/yii migrate/up --interactive=0"
fi
exec "$@"