Does Travis CI support deploying to multiple environment in sequence?

In the deploy phase, we want to deploy to staging environment first, run tests and then deploy to production environment. I wonder whether this is feasible in Travis CI.

Deployments, like all other build steps, are always done in sequence, in the order they are specified in .travis.yml.

It however isn’t supported to use your own hardware as a CI environment to run tests on, you need Travis Enterprise for that.

4 posts were split to a new topic: Manual approval stage in the middle of a build to make manual adjustments before deployment?