Added git clone depth of zero to travis CI config.

This is a copy of PR #539 that targets the v1.4.x branch in order to fix travis.