Travis-ci support

travis-ci requires different credentials than we have by default,
therefore a conditional for credentials in tests was introduced.