plugeth-statediff/scripts/integration-setup.sh
Roy Crihfield 56e3133c62
All checks were successful
Test / Run compliance tests (pull_request) Successful in 3m26s
Test / Run unit tests (pull_request) Successful in 12m51s
Test / Run integration tests (pull_request) Successful in 30m19s
[wip] test updates
2024-04-02 10:41:25 +08:00

32 lines
934 B
Bash
Executable File

#!/bin/bash
# Builds and deploys a stack with only what we need.
# This script assumes we are running in the project root.
set -e
laconic_so="${LACONIC_SO:-laconic-so} --stack $(readlink -f test) --verbose --debug"
CONFIG_DIR=$(readlink -f "${CONFIG_DIR:-$(mktemp -d)}")
# Point stack-orchestrator to the multi-project root
export CERC_REPO_BASE_DIR="${CERC_REPO_BASE_DIR:-$(git rev-parse --show-toplevel)/..}"
# v5 migrations only go up to version 18
echo CERC_STATEDIFF_DB_GOOSE_MIN_VER=18 >> $CONFIG_DIR/stack.env
# don't run plugeth in the debugger
echo CERC_REMOTE_DEBUG=false >> $CONFIG_DIR/stack.env
set -x
if [[ -z $SKIP_BUILD ]]; then
$laconic_so setup-repositories \
--exclude git.vdb.to/cerc-io/plugeth,git.vdb.to/cerc-io/plugeth-statediff
$laconic_so build-containers \
--exclude cerc/plugeth,cerc/plugeth-statediff
fi
$laconic_so deploy \
--env-file $CONFIG_DIR/stack.env \
--cluster test up