The entire idea of Travis CI is to watch for any time that you push some changes or some amount of code to GitHub project.
Travis CI will then automatically pull down all the code inside of GitHub repository and at that point it essentially gives us the ability to do some work. You can do anything with your code that you can possibly imagine: test, deploy etc.