tokenbridge/oracle-e2e/run-tests.sh
2021-07-07 16:21:01 +03:00

20 lines
416 B
Bash
Executable File

cd $(dirname $0)
mode="$1"
case "$mode" in
amb)
script=./test/amb.js
;;
erc-to-native)
script=./test/ercToNative.js
;;
esac
MODE="$mode" ../e2e-commons/up.sh deploy generate-amb-tx manual-amb-relay blocks oracle oracle-validator-2 oracle-validator-3
docker-compose -f ../e2e-commons/docker-compose.yml run e2e yarn workspace oracle-e2e run start $script
rc=$?
../e2e-commons/down.sh
exit $rc