Submit code coverage to coveralls only on travis build success

Prevent coverage results from being submitted to coveralls when the build fails, resulting in inaccurate statistics.

PR is against poc8 branch, but this can be applied to develop as well