generally speaking: reading such config parameters from a config file would make much more sense.

In addition I'd suggest to create a config file for travis and pass this to the unit test execustion.

This way there will be less conflicts due to other devs running test *accidentially* local on their machines.