Merge pull request #2712 from phansch/shallow_clone_in_integration_tests

Shallow clone in integration tests
This commit is contained in:
Nick Cameron 2018-05-17 20:41:13 +12:00 committed by GitHub
commit bf2581bf77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 -