Roy Crihfield
638c43fd3b
Also runs new BlobTx tests - cerc-io/system-tests#13. Depends on - cerc-io/fixturenet-eth-stacks#21 - cerc-io/ipld-eth-server#266 - cerc-io/system-tests#13 Reviewed-on: #3
34 lines
774 B
Bash
Executable File
34 lines
774 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
stack_dir=$(readlink -f "$1")
|
|
[[ -d "$stack_dir" ]]
|
|
|
|
laconic_so="laconic-so --verbose --stack $stack_dir"
|
|
|
|
CONFIG_DIR=$(readlink -f "${CONFIG_DIR:-$(mktemp -d)}")
|
|
# By default assume we are running in the project root.
|
|
export CERC_REPO_BASE_DIR="${CERC_REPO_BASE_DIR:-$(git rev-parse --show-toplevel)/..}"
|
|
|
|
# Don't run geth/plugeth in the debugger, it will swallow error backtraces
|
|
echo CERC_REMOTE_DEBUG=false >> $CONFIG_DIR/stack.env
|
|
|
|
set -x
|
|
|
|
if [[ -z $SKIP_BUILD ]]; then
|
|
# Prevent conflicting tty output
|
|
export BUILDKIT_PROGRESS=plain
|
|
|
|
$laconic_so setup-repositories
|
|
$laconic_so build-containers
|
|
fi
|
|
|
|
if ! $laconic_so deploy \
|
|
--env-file $CONFIG_DIR/stack.env \
|
|
--cluster test up
|
|
then
|
|
$laconic_so deploy --cluster test logs
|
|
exit 1
|
|
fi
|