TravisCI: Install `coveralls` only for successful tests

Sometimes installing packages using "pip" is slow, and installing "coveralls" in particular can be very slow.  "coveralls" is only required if the tests pass, so this PR only installs "coveralls" on success.  This will allow faster feedback from failed tests.