Travis: upload the coverage data as part of the script (#6877)
Travis: upload the coverage data as part of the script (#6877)

According to Travis docs the exit code of after_success doesn't affect
the build result. Instead, uploading the coverage data as the last step
of the script will cause the job to fail if the command exits with
non-zero.

https://docs.travis-ci.com/user/customizing-the-build/#Breaking-the-Build
LLNL/spack,tmerrick1/spack,krafczyk/spack,matthiasdiener/spack,tmerrick1/spack,krafczyk/spack,EmreAtes/spack,mfherbst/spack,matthiasdiener/spack,tmerrick1/spack,iulian787/spack,mfherbst/spack,LLNL/spack,LLNL/spack,tmerrick1/spack,iulian787/spack,iulian787/spack,matthiasdiener/spack,iulian787/spack,krafczyk/spack,mfherbst/spack,LLNL/spack,tmerrick1/spack,EmreAtes/spack,krafczyk/spack,EmreAtes/spack,EmreAtes/spack,EmreAtes/spack,mfherbst/spack,LLNL/spack,mfherbst/spack,matthiasdiener/spack,matthiasdiener/spack,krafczyk/spack,iulian787/spack