Update Travis CI configuration to use after-failure script