updated travis script to only run coveralls after build was successful