If there is something I really dislike as an Android Developer, I think it would be to install, maintain, and setup a server for any reason. This is also true when it comes to Continuous Integration. That’s why I would like to share the way I perform Continuous Integration on my projects.

The project we will work on

In this article, we will work on the MVVMPosts projects. From that, we will:

Add Continuous Integration to be sure that tests are working

Add Code Coverage report to Continuous Integration

Display Continuous Integration and Code Coverage reports in the README.md file of the project

Let’s go

Be careful, we will work on the unit_test branch for the rest of the article

Add Continuous Integration

There are many Cloud Continuous Integration services, such as Circle CI, Travis, …

I choose Travis CI as it perfectly matches my needs, and because it is the most used (meaning you will more easily get support and find answers to your questions).

The business model of Travis CI is easy: free for public repository, but you have to pay for private repositories.

Let’s see now how to implement it:

Sign-Up to Travis