How do I run `deploy`, `before_deploy`, and `after_deploy` in debug mode?

So I’m looking through the docs for running a build in debug mode, and I got to the portion on Things to do once you are inside the debug VM. I don’t see anywhere how I could run the deploy, before_deploy, and after_deploy scripts.

Is there a way to run the commands and start up the deployment in the travis.yml file?

You can use travis_run_after_success to run the deploy script. I found this by looking at everything that starts with travis_run - I’m not sure this is documented anywhere.