sdk.sh 669 B

1234567891011
  1. #!/bin/sh
  2. set -e
  3. num=${NUM_GUARDIANS:-1} # default value for NUM_GUARDIANS = 1
  4. for ((i=0; i<num; i++)); do
  5. while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' guardian-$i.guardian:6060/readyz)" != "200" ]]; do sleep 5; echo "waiting for guardian $i"; done
  6. done
  7. while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' spy:6060/metrics)" != "200" ]]; do sleep 5; done
  8. while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ibc-relayer:7597/debug/pprof/)" != "200" ]]; do sleep 5; done
  9. while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' relayer-engine:3000/metrics)" != "200" ]]; do sleep 5; done
  10. CI=true npm --prefix ../sdk/js run test-ci -- --maxWorkers=$MAX_WORKERS