Follow the following prerequisites:
- Log in to TravisCI (https://travis-ci.org).
- Click on your profile and set up a Repository. In our case, we'll pick the same repository from GitHub that we used in the previous recipe (https://github.com/kencochrane/heroku-flask-example):
- We will need to now add a .travis.yml file to our Git repo that has the information that TravisCI will need when building our code. Create a file with the following contents, and commit and push it to GitHub:
$ cat .travis.yml
language: python
python:
- "3.6"
install:
- pip install -r requirements.txt
script:
- pytest