]> git.lizzy.rs Git - rust.git/commitdiff
Shallow clone in integration tests
authorPhilipp Hansch <dev@phansch.net>
Wed, 16 May 2018 17:15:51 +0000 (19:15 +0200)
committerPhilipp Hansch <dev@phansch.net>
Wed, 16 May 2018 17:15:51 +0000 (19:15 +0200)
This should make cloning a bit faster for all the integration tests.

ci/integration.sh

index 8e9e9ed2299b9f5ee672f855f3129d2652833e09..00e599dfb43095750fb4de5930c4b4022a11ccf5 100755 (executable)
@@ -58,20 +58,20 @@ function check {
 
 case ${INTEGRATION} in
     cargo)
-        git clone https://github.com/rust-lang/${INTEGRATION}.git
+        git clone --depth=1 https://github.com/rust-lang/${INTEGRATION}.git
         cd ${INTEGRATION}
         export CFG_DISABLE_CROSS_TESTS=1
         check
         cd -
         ;;
     failure)
-        git clone https://github.com/rust-lang-nursery/${INTEGRATION}.git
+        git clone --depth=1 https://github.com/rust-lang-nursery/${INTEGRATION}.git
         cd ${INTEGRATION}/failure-1.X
         check
         cd -
         ;;
     *)
-        git clone https://github.com/rust-lang-nursery/${INTEGRATION}.git
+        git clone --depth=1 https://github.com/rust-lang-nursery/${INTEGRATION}.git
         cd ${INTEGRATION}
         check
         cd -