问题
Is it possible to run the deployment phase in Travis CI even when the build is reporting a failure?
回答1:
No. Deployment does not happen if the script
fails.
If you want to execute a block of code regardless of the result, use after_script
and a custom script.
https://docs.travis-ci.com/user/deployment/custom/ describes how to deploy with after_success
, but the idea is the same.
来源:https://stackoverflow.com/questions/38916480/is-it-possible-to-run-the-deployment-phase-even-when-a-travis-build-fail