mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-22 18:27:31 +00:00
fix(run): local tasks override non-local tasks
This commit is contained in:
parent
08e81c5e16
commit
fbfd751621
|
@ -8,9 +8,6 @@ set -eu
|
||||||
|
|
||||||
PATH="$PATH:./node_modules/.bin"
|
PATH="$PATH:./node_modules/.bin"
|
||||||
|
|
||||||
# Include any local tasks.
|
|
||||||
source run.local || true
|
|
||||||
|
|
||||||
{% if not isFlake %}
|
{% if not isFlake %}
|
||||||
# If we're running in CI we need to disable TTY allocation for docker compose
|
# 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.
|
# commands that enable it by default, such as exec and run.
|
||||||
|
@ -106,6 +103,9 @@ function _run {
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
# Include any local tasks.
|
||||||
|
source run.local || true
|
||||||
|
|
||||||
TIMEFORMAT=$'\nTask completed in %3lR'
|
TIMEFORMAT=$'\nTask completed in %3lR'
|
||||||
time "${@:-help}"
|
time "${@:-help}"
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,6 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
# Include any local tasks.
|
|
||||||
source run.local || true
|
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -133,6 +130,9 @@ function _run {
|
||||||
"${service}" "${@}"
|
"${service}" "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Include any local tasks.
|
||||||
|
source run.local || true
|
||||||
|
|
||||||
TIMEFORMAT=$'\nTask completed in %3lR'
|
TIMEFORMAT=$'\nTask completed in %3lR'
|
||||||
time "${@:-help}"
|
time "${@:-help}"
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,6 @@ set -eu
|
||||||
|
|
||||||
PATH="$PATH:./node_modules/.bin"
|
PATH="$PATH:./node_modules/.bin"
|
||||||
|
|
||||||
# Include any local tasks.
|
|
||||||
source run.local || true
|
|
||||||
|
|
||||||
{% if isDocker %}
|
{% if isDocker %}
|
||||||
# If we're running in CI we need to disable TTY allocation for docker compose
|
# 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.
|
# commands that enable it by default, such as exec and run.
|
||||||
|
@ -123,6 +120,9 @@ function _run {
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
# Include any local tasks.
|
||||||
|
source run.local || true
|
||||||
|
|
||||||
TIMEFORMAT=$'\nTask completed in %3lR'
|
TIMEFORMAT=$'\nTask completed in %3lR'
|
||||||
time "${@:-help}"
|
time "${@:-help}"
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,6 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
# Include any local tasks.
|
|
||||||
source run.local || true
|
|
||||||
|
|
||||||
# Disable Git hooks.
|
# Disable Git hooks.
|
||||||
function git-hooks:off {
|
function git-hooks:off {
|
||||||
git config --unset core.hooksPath
|
git config --unset core.hooksPath
|
||||||
|
@ -26,6 +23,9 @@ function help {
|
||||||
printf "\nExtended help:\n Each task has comments for general usage\n"
|
printf "\nExtended help:\n Each task has comments for general usage\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Include any local tasks.
|
||||||
|
source run.local || true
|
||||||
|
|
||||||
TIMEFORMAT=$'\nTask completed in %3lR'
|
TIMEFORMAT=$'\nTask completed in %3lR'
|
||||||
time "${@:-help}"
|
time "${@:-help}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue