#!/bin/sh

if (php --version | grep -i HipHop > /dev/null); then
  echo "skipping application init on HHVM"
else

    mysql -e 'CREATE DATABASE yii2_advanced_tests;';
    cd apps/advanced/tests/codeception/bin
    php yii migrate --interactive=0
    cd ../../../../..
fi
