mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 16:56:53 +00:00
fix_: stop_signal
This commit is contained in:
parent
3a992f2515
commit
9cd7100242
@ -30,6 +30,10 @@ all_compose_files="-f ${root_path}/docker-compose.anvil.yml -f ${root_path}/dock
|
|||||||
echo -e "${GRN}Running tests${RST}, HEAD: $(git rev-parse HEAD)"
|
echo -e "${GRN}Running tests${RST}, HEAD: $(git rev-parse HEAD)"
|
||||||
docker-compose ${all_compose_files} up -d --build --remove-orphans
|
docker-compose ${all_compose_files} up -d --build --remove-orphans
|
||||||
|
|
||||||
|
# Stop containers
|
||||||
|
echo -e "${GRN}Stopping docker containers${RST}"
|
||||||
|
docker-compose ${all_compose_files} stop
|
||||||
|
|
||||||
# Save logs
|
# Save logs
|
||||||
echo -e "${GRN}Saving logs${RST}"
|
echo -e "${GRN}Saving logs${RST}"
|
||||||
docker-compose ${all_compose_files} logs -f tests-rpc > "${root_path}/tests-rpc.log"
|
docker-compose ${all_compose_files} logs -f tests-rpc > "${root_path}/tests-rpc.log"
|
||||||
@ -39,8 +43,8 @@ docker-compose ${all_compose_files} logs status-go-no-funds > "${root_path}/stat
|
|||||||
# Retrieve exit code
|
# Retrieve exit code
|
||||||
exit_code=$(docker inspect integration-tests_tests-rpc_1 -f '{{.State.ExitCode}}');
|
exit_code=$(docker inspect integration-tests_tests-rpc_1 -f '{{.State.ExitCode}}');
|
||||||
|
|
||||||
# Stop and remove containers
|
# Cleanup containers
|
||||||
echo -e "${GRN}Stopping docker containers${RST}"
|
echo -e "${GRN}Removing docker containers${RST}"
|
||||||
docker-compose ${all_compose_files} down
|
docker-compose ${all_compose_files} down
|
||||||
|
|
||||||
# Collect coverage reports
|
# Collect coverage reports
|
||||||
|
@ -10,11 +10,10 @@ services:
|
|||||||
build_flags: -cover -ldflags="-X github.com/status-im/status-go/params.Version= -X github.com/status-im/status-go/params.GitCommit=11f83780d -X github.com/status-im/status-go/params.IpfsGatewayURL=https://ipfs.status.im/ -X github.com/status-im/status-go/vendor/github.com/ethereum/go-ethereum/metrics.EnabledStr=true"
|
build_flags: -cover -ldflags="-X github.com/status-im/status-go/params.Version= -X github.com/status-im/status-go/params.GitCommit=11f83780d -X github.com/status-im/status-go/params.IpfsGatewayURL=https://ipfs.status.im/ -X github.com/status-im/status-go/vendor/github.com/ethereum/go-ethereum/metrics.EnabledStr=true"
|
||||||
entrypoint: [
|
entrypoint: [
|
||||||
"statusd",
|
"statusd",
|
||||||
"--log", "DEBUG",
|
|
||||||
"-c", "/static/configs/config.json",
|
"-c", "/static/configs/config.json",
|
||||||
"--seed-phrase", "test test test test test test test test test test test junk",
|
"--seed-phrase", "test test test test test test test test test test test junk",
|
||||||
"--password", "Strong12345",
|
"--password", "Strong12345",
|
||||||
"--dir", "/tmp/status-go-data", # Keep in sync with `config.json/DataDir` value. Later this arg not be needed.
|
"--dir", "/tmp/status-go-data", # Keep in sync with `config.json/DataDir` value. Later this arg will not be needed.
|
||||||
]
|
]
|
||||||
ports:
|
ports:
|
||||||
- 3333:3333
|
- 3333:3333
|
||||||
@ -27,6 +26,7 @@ services:
|
|||||||
GOCOVERDIR: "/coverage/binary"
|
GOCOVERDIR: "/coverage/binary"
|
||||||
volumes:
|
volumes:
|
||||||
- ./coverage/binary:/coverage/binary
|
- ./coverage/binary:/coverage/binary
|
||||||
|
stop_signal: SIGINT
|
||||||
|
|
||||||
# TODO: Remove this duplication when implemented: https://github.com/status-im/status-go/issues/5803
|
# TODO: Remove this duplication when implemented: https://github.com/status-im/status-go/issues/5803
|
||||||
status-go-no-funds:
|
status-go-no-funds:
|
||||||
@ -43,7 +43,7 @@ services:
|
|||||||
"-c", "/static/configs/config.json",
|
"-c", "/static/configs/config.json",
|
||||||
"--seed-phrase", "test test test test test test test test test test test takoe",
|
"--seed-phrase", "test test test test test test test test test test test takoe",
|
||||||
"--password", "Strong12345",
|
"--password", "Strong12345",
|
||||||
"--dir", "/tmp/status-go-data", # Keep in sync with `config.json/DataDir` value. Later this arg not be needed.
|
"--dir", "/tmp/status-go-data", # Keep in sync with `config.json/DataDir` value. Later this arg will not be needed.
|
||||||
]
|
]
|
||||||
ports:
|
ports:
|
||||||
- 3334:3333
|
- 3334:3333
|
||||||
@ -56,6 +56,7 @@ services:
|
|||||||
GOCOVERDIR: "/coverage/binary"
|
GOCOVERDIR: "/coverage/binary"
|
||||||
volumes:
|
volumes:
|
||||||
- ./coverage/binary:/coverage/binary
|
- ./coverage/binary:/coverage/binary
|
||||||
|
stop_signal: SIGINT
|
||||||
|
|
||||||
tests-rpc:
|
tests-rpc:
|
||||||
user: ${INTEGRATION_TESTS_DOCKER_UID}
|
user: ${INTEGRATION_TESTS_DOCKER_UID}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user