* checking error codes of tests better and cleade up lecho logs

This commit is contained in:
Seth Call 2012-11-18 09:21:01 -06:00
parent 0d89bed9d1
commit 1099720911
1 changed files with 18 additions and 2 deletions

20
build
View File

@ -2,15 +2,31 @@
echo "updating dependencies"
bundle update
if [ "$?" = "0" ]; then
echo "success: updated dependencies"
else
echo "could not update dependencies"
exit 1
fi
echo "running rspec tests"
bundle exec rspec
if [ "$?" = "0" ]; then
echo "success: ran rspec tests"
else
echo "running rspec tests failed."
exit 1
fi
echo "running jasmine tests"
rake jasmine:ci RAILS_ENV=test
if [ "$?" = "0" ]; then
echo "tests completed"
echo "success: jasmine tests completed"
else
echo "tests failed."
echo "running jasmine tests failed"
exit 1
fi