Merge pull request #1845 from harmony-one/deploy-tests

Add checks for dependent repos in test/deploy
pull/1853/head
Daniel Van Der Maden 5 years ago committed by GitHub
commit 1df16f6374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      test/deploy.sh

@ -63,6 +63,15 @@ function debug_staking() {
hmy_one_dir="$(go env GOPATH)/src/github.com/harmony-one" hmy_one_dir="$(go env GOPATH)/src/github.com/harmony-one"
hmy_bin="${hmy_one_dir}/go-sdk/hmy" hmy_bin="${hmy_one_dir}/go-sdk/hmy"
keystore="${hmy_one_dir}/harmony-ops/test-automation/api-tests/LocalnetValidatorKeys" 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 pyhmy
python3 -m pip install requests python3 -m pip install requests
python3 "${hmy_one_dir}/harmony-ops/test-automation/api-tests/test.py" --keystore ${keystore} \ python3 "${hmy_one_dir}/harmony-ops/test-automation/api-tests/test.py" --keystore ${keystore} \

Loading…
Cancel
Save