Using Travis to run tests with every push

So, we have a test as seen in the first section of this chapter. And as we move on with our work, we want all of our tests to run before and after we push our code. Before pushing is easy; you run them, or as you will see later on, we set up Gulp to do that for us. But for now, we will get all the tests to run after we push to GitHub, thanks to Travis CI at

Using Travis to run tests with every push

So, in this section, we will set our App so that when we push to GitHub, we trigger a test on Travis. By the time we are done, we will have a badge on our repo showing the status of our project as well:

Getting ready

I will walk through ...

Get Laravel 5.x Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.