Revert "use after_script and check $TRAVIS_TEST_RESULT"

This reverts commit a8a1e51d85b5d46771cb4d5437ec63b4fbb95915.