Install Your Own Dependency on Travis

Tue Feb 25, 2014

I am currently working on a team Java project. Our team use Maven to manage dependency and Travis for continues integration. The only problem is that when we have a dependency which is written by ourselves, we have to compile and install it before the testing.

Fortunately, Travis-CI provides before_install option which allows us to install our own dependency before testing the target. If we host our dependency on GitHub, actually it is easy to implement. There is an example that install a maven based project as local dependency so that we can compile our project.