Clone into checkout directory and cd into it

This commit is contained in:
Philipp Hansch 2018-05-16 19:21:57 +02:00
parent 9e6dc8d2d5
commit dd0ed5dccc
No known key found for this signature in database
GPG Key ID: B6FA06A6E0E2665B

View File

@ -3,7 +3,8 @@ cargo install --force
echo "Running integration test for crate ${INTEGRATION}" echo "Running integration test for crate ${INTEGRATION}"
git clone https://github.com/${INTEGRATION}.git git clone --depth=1 https://github.com/${INTEGRATION}.git checkout
cd checkout
function check() { function check() {
cargo clippy --all &> clippy_output cargo clippy --all &> clippy_output
@ -19,7 +20,6 @@ case ${INTEGRATION} in
check check
;; ;;
*) *)
cd ${INTEGRATION}
check check
;; ;;
esac esac