Travis is integrated with GitHub and supports various programming languages like Ruby, Node.js or PHP. Although Travis doesn't support Python language it's possible to use it with Python projects. Here's how to do it ;)

First of all you need to sign in through GitHub and follow the getting started guide here. In the third step you need to create a .travis.ymlconfiguration file to tell Travis how to build your project. This is an example of the structure that must have.

There are only three sections: language, before_script and script. The first section tells Travis the programming language of the project. We usePython, although isnot supported, to pass travis-lint check.

The next two sections are a set of shell commands to build the project. The before_script section is executed before main script and script is the main script to build your project.We basically create a virtual environment and install the dependencies and then build project and run tests.