Update build configuration files
This commit is contained in:
parent
10160feec0
commit
689f1eaae4
11
run
11
run
|
@ -5,6 +5,13 @@
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o pipefail
|
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.
|
# Run automated tests as part of the Continuous Integration (CI) pipeline.
|
||||||
function ci:test {
|
function ci:test {
|
||||||
lint:dockerfile
|
lint:dockerfile
|
||||||
|
@ -98,7 +105,7 @@ function test:commit {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _exec {
|
function _exec {
|
||||||
docker compose exec -T "${@}"
|
docker compose exec ${TTY} "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function _run {
|
function _run {
|
||||||
|
@ -109,7 +116,7 @@ function _run {
|
||||||
--entrypoint "${command}" \
|
--entrypoint "${command}" \
|
||||||
--no-deps \
|
--no-deps \
|
||||||
--rm \
|
--rm \
|
||||||
-T \
|
${TTY} \
|
||||||
"${service}" "${@}"
|
"${service}" "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue