Restructure TravisCI code to not have coveralls affect the build result

Change-Id: I93ee74f4091c19b2c7e965387d392fbb3cb3ba00