Skip to content

Instantly share code, notes, and snippets.

@proudlygeek
Created March 22, 2012 16:36
Show Gist options
  • Select an option

  • Save proudlygeek/2159450 to your computer and use it in GitHub Desktop.

Select an option

Save proudlygeek/2159450 to your computer and use it in GitHub Desktop.
phpunit wav when all green : )
tv-testall() {
if [ $(pwd) != "/home/prouudlygeek/github/BookingSandbox" ]; then
echo -n "terravision test command failed: you are not in the correct path "
pwd
return 1
fi
php app/console doctrine:database:drop --env="test" --force
php app/console doctrine:database:create --env="test"
php app/console doctrine:schema:create --env="test"
php app/console doctrine:fixtures:load --env="test"
php app/console assets:install web
if [[ $(phpunit -c app) ]]; then
aplay ~/Dropbox/tvision/test-passed.wav
fi
echo $'\007'
return 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment