mukan-ibc/e2e/scripts/init.sh
Mukan Erkin Törük 6852832fe8
Some checks failed
CodeQL / Analyze (push) Waiting to run
Docker Build & Push Simapp (main) / docker-build (push) Waiting to run
golangci-lint / lint (push) Waiting to run
Tests / Code Coverage / build (amd64) (push) Waiting to run
Tests / Code Coverage / build (arm64) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[additional-args:-tags="test_e2e" name:e2e path:./e2e]) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[name:08-wasm path:./modules/light-clients/08-wasm]) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[name:ibc-go path:.]) (push) Waiting to run
Deploy to GitHub Pages / Deploy to GitHub Pages (push) Has been cancelled
Buf-Push / push (push) Has been cancelled
initial: sovereign Mukan Network fork
2026-05-11 03:18:28 +03:00

27 lines
909 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
# TODO: when we are using config files for CI we can remove this.
# ref: https://github.com/cosmos/ibc-go/issues/4697
# if running in CI we just use env vars.
if [[ "${CI:-}" = "true" ]]; then
exit 0
fi
# ensure_config_file makes sure there is a config file for the e2e tests either by creating a new one using the sample,
# it is copied to either the default location or the specified env location.
function ensure_config_file(){
local config_file_path="${HOME}/.ibc-go-e2e-config.yaml"
if [[ ! -z "${E2E_CONFIG_PATH:-}" ]]; then
config_file_path="${E2E_CONFIG_PATH}"
fi
if [[ ! -f "${config_file_path}" ]]; then
echo "creating e2e config file from sample."
echo "copying sample.config.yaml to ${config_file_path}"
cp sample.config.yaml "${config_file_path}"
fi
echo "using config file at ${config_file_path} for e2e test"
}
ensure_config_file