Skip to content

Instantly share code, notes, and snippets.

@pablofmorales
Created May 2, 2013 16:39
Show Gist options
  • Save pablofmorales/5503494 to your computer and use it in GitHub Desktop.
Save pablofmorales/5503494 to your computer and use it in GitHub Desktop.
Smoke.sh para correr todo los tests de smoke, y comprobar rapidamente si debemos seguir con el deploy o tirar todo para atras.
#!/bin/bash
RESULT=$(phpunit tests/Smoke);
if [[ $RESULT =~ FAILURES ]]; then
echo "TEST WAS FAILED"
echo $RESULT
exit 1;
fi
echo "EVERITHING IS OK"
exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment