From ca6ca239261e8260b657fa7d34d0e2e987a60fe6 Mon Sep 17 00:00:00 2001 From: Daniel Van Der Maden Date: Wed, 20 Nov 2019 16:10:45 -0800 Subject: [PATCH] [test/deploy] Add checks & clone for dependent repos --- test/deploy.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/deploy.sh b/test/deploy.sh index 395425d88..478d322cf 100755 --- a/test/deploy.sh +++ b/test/deploy.sh @@ -63,6 +63,15 @@ function debug_staking() { hmy_one_dir="$(go env GOPATH)/src/github.com/harmony-one" hmy_bin="${hmy_one_dir}/go-sdk/hmy" keystore="${hmy_one_dir}/harmony-ops/test-automation/api-tests/LocalnetValidatorKeys" + if [ ! -d "${hmy_one_dir}/harmony-ops/" ]; then + git clone https://github.com/harmony-one/harmony-ops.git "${hmy_one_dir}/harmony-ops" + fi + if [ ! -d "${hmy_one_dir}/go-sdk/" ]; then + git clone https://github.com/harmony-one/go-sdk.git "${hmy_one_dir}/go-sdk" + fi + if [ ! -f "${hmy_bin}" ]; then + make -C "${hmy_one_dir}/go-sdk/" + fi python3 -m pip install pyhmy python3 -m pip install requests python3 "${hmy_one_dir}/harmony-ops/test-automation/api-tests/test.py" --keystore ${keystore} \