Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ if [ "${CS_DATABASE__HOST}" == "localhost" ]; then
{% raw %}
running_postgres="$(docker ps --filter "name=postgres" --filter "health=healthy" --format "{{.Names}};{{.Ports}}")"
{% endraw %}
if [ -z "${running_postgres}" ] || [ -z $(echo ${running_postgres} | grep ${CS_DATABASE__PORT}) ] ; then
if [ -z "${running_postgres}" ] || [ -z "$(echo "${running_postgres}" | grep "${CS_DATABASE__PORT}")" ] ; then
echo "error: Could not detect a running, healthy postgres container with port ${CS_DATABASE__PORT}"
echo "error: Try running 'mise run postgres:up' to start a container"
exit 68
fi
echo $running_postgres
export CS_DATABASE__HOST=$(echo $running_postgres | grep ${CS_DATABASE__PORT} | cut -d ';' -f 1)
echo "${running_postgres}"
export CS_DATABASE__HOST=$(echo "${running_postgres}" | grep "${CS_DATABASE__PORT}" | cut -d ';' -f 1)
echo "Using postgres running in container: ${CS_DATABASE__HOST}"
fi

Expand Down Expand Up @@ -688,6 +688,7 @@ fi

[tasks."test:integration:showcase"]
description = "Run Showcase integration test"
dir = "{{config_root}}/tests"
run = """
mise --env tls run proxy:up proxy-tls --extra-args "--detach --wait"
mise --env tls run test:wait_for_postgres_to_quack --port 6432 --max-retries 20 --tls
Expand Down