Running automated unit tests on an Arduino library using Travis CI

I'm not talking about running tests on the physical hardware. I'm talking about doing unit tests of the libraries bundled with the hardware packages. For example: