Getting ready

Follow the following prerequisites:

  1. Log in to TravisCI (https://travis-ci.org).
  1. 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):

  1. 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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.165.167