This reverts commit 113556463d.
113556463d
The deploy phase is skipped when script/tests fails. This prevent us from uploading failed result to S3. This PR change it to after_script phase and the secret is injected via Travis Env Var. https://docs.travis-ci.com/user/job-lifecycle/