init-apps.sh 493 Bytes
Newer Older
Carsten Brandt committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/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