travis.yml: Only run tests and install if build succeeds.