It appears sh isn't bash on the travis machine.

But the script still merrily exited with a zero status
despite choking.
In fact, let's bash -e to make errors appropriately fatal
Deployment should be on after_success, not script

Using "script" overrode the default test task, so
it a) wasn't running the unit tests and b) was deploying
snapshots regardless of how bad things might be.