Add travis.yml.

Based on https://github.com/MartinNowak/bloom/blob/master/.travis.yml.