1234567891011121314151617181920 |
- #!/usr/bin/env bash
- set -e
- SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
- cd $SCRIPT_PATH
- SCENARIO=$1
- SCENARIO=${SCENARIO:=full}
- if [ -n "$RUNTIME_UPGRADE_TARGET_IMAGE_TAG" ]; then
- export RUNTIME_UPGRADE_TARGET_WASM_PATH=${RUNTIME_UPGRADE_TARGET_WASM_PATH:="./target-runtime.wasm"}
- id=`docker create joystream/node:${RUNTIME_UPGRADE_TARGET_IMAGE_TAG}`
- docker cp $id:/joystream/runtime.compact.wasm $RUNTIME_UPGRADE_TARGET_WASM_PATH
- docker rm $id
- fi
- time DEBUG=integration-tests:* yarn workspace integration-tests node-ts-strict src/scenarios/${SCENARIO}.ts
|