Build Stages: Deploying to Heroku
This example has 5 build stages:
- Two jobs running unit tests in parallel on stage 1.
- One job deploying the application to Heroku staging.
- One job testing the staging deployment on Heroku.
- One job deploying the application to Heroku production.
- One job testing the production deployment on Heroku.
Here’s what the .travis.yml
config could look like:
This is how the build matrix would look like:
You can find the code for this example on our demo repository: