Fix #552

Add .travis.yml to configure mongodb.