use after_script and check $TRAVIS_TEST_RESULT