Update build configuration files

This commit is contained in:
Oliver Davies 2023-12-16 09:02:55 +00:00
parent 48c7835789
commit a7d4bdd8d7

11
run
View file

@ -5,6 +5,13 @@
set -o errexit
set -o pipefail
# If we're running in CI we need to disable TTY allocation for docker compose
# commands that enable it by default, such as exec and run.
TTY="${TTY:-}"
if [[ ! -t 1 ]]; then
TTY="-T"
fi
# Run automated tests as part of the Continuous Integration (CI) pipeline.
function ci:test {
lint:dockerfile
@ -80,7 +87,7 @@ function test:commit {
}
function _exec {
docker compose exec -T "${@}"
docker compose exec ${TTY} "${@}"
}
function _run {
@ -91,7 +98,7 @@ function _run {
--entrypoint "${command}" \
--no-deps \
--rm \
-T \
${TTY} \
"${service}" "${@}"
}