Clone less buck and gerrit code during tests

Try to clone the last master commit only during travis tests
using --depth=1 --branch=master git-clone switches.