Configuring GitHub

To take full advantage of our configured CI system, we need to ensure that we check the build before merging it into the main branch. To do so, we can configure master in GitHub as the main branch and add requirements before merging into it:

Be sure that the .travis.yaml file contains the proper credentials if you fork the repo. You'll need to update them with your own.
  1. Go to Settings and Branches in our GitHub repo and click Add rule.
  2. Then, we enable the Require status checks to pass before merging option with the status checks from travis-ci:
  1. We also select the Require branches to be up to date before merging option. ...

Get Hands-On Docker for Microservices with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.