mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-29 13:57:50 +08:00
15 lines
493 B
Bash
Executable File
15 lines
493 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if (php --version | grep -i HHVM > /dev/null); then
|
|
echo "skipping application init on HHVM"
|
|
else
|
|
|
|
mysql -e 'CREATE DATABASE yii2_advanced_acceptance;';
|
|
mysql -e 'CREATE DATABASE yii2_advanced_functional;';
|
|
mysql -e 'CREATE DATABASE yii2_advanced_unit;';
|
|
cd apps/advanced/frontend/tests/acceptance && php yii migrate --interactive=0
|
|
cd ../functional && php yii migrate --interactive=0
|
|
cd ../unit && php yii migrate --interactive=0 && cd ../../../../..
|
|
|
|
fi
|