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.
diff --git a/.travis.yml b/.travis.yml
index dfb6c36..55880a1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,12 +21,12 @@
- cd ../..
- mkdir -p build
- cd build
- - git clone https://gerrit.googlesource.com/buck
+ - git clone --depth=1 --branch=master https://gerrit.googlesource.com/buck
- cd buck
- ant
- export PATH=$PATH:$TRAVIS_BUILD_DIR/../../build/buck/bin
- cd ..
- - git clone https://gerrit.googlesource.com/gerrit
+ - git clone --depth=1 --branch=master https://gerrit.googlesource.com/gerrit
- cd gerrit
- ln -s $TRAVIS_BUILD_DIR plugins
- travis_retry tools/download_all.py > download.log