Improve Travis-ci scripts to report failure if tests fail.