forked from stellar/go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
integration.sh
executable file
·24 lines (20 loc) · 962 Bytes
/
integration.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/bash
set -e
cd "$(dirname "${BASH_SOURCE[0]}")"
export HORIZON_INTEGRATION_TESTS=true
export HORIZON_INTEGRATION_ENABLE_CAP_35=${HORIZON_INTEGRATION_ENABLE_CAP_35:-}
export HORIZON_INTEGRATION_ENABLE_CAPTIVE_CORE=${HORIZON_INTEGRATION_ENABLE_CAPTIVE_CORE:-}
export HORIZON_INTEGRATION_ENABLE_CAPTIVE_CORE_USE_DB=${HORIZON_INTEGRATION_ENABLE_CAPTIVE_CORE_USE_DB:-}
export CAPTIVE_CORE_BIN=${CAPTIVE_CORE_BIN:-/usr/bin/stellar-core}
export TRACY_NO_INVARIANT_CHECK=1 # This fails on my dev vm. - Paul
# launch postgres if it's not already.
if [[ "$(docker inspect integration_postgres -f '{{.State.Running}}')" != "true" ]]; then
docker rm -f integration_postgres || true;
docker run -d \
--name integration_postgres \
--platform linux/amd64 \
--env POSTGRES_HOST_AUTH_METHOD=trust \
-p 5432:5432 \
circleci/postgres:9.6.5-alpine
fi
exec go test -timeout 25m github.com/stellar/go/services/horizon/internal/integration/... "$@"