Travis: some fixes

Hi,

Could you merge this. I started to work on travis. It passes now. Once it's merged, I'll have a look to pass the tests.

Thanks.