From 9ea05ff9aa616c2346930e89ca61d25072095af7 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 22 Nov 2023 23:01:22 +0000 Subject: [PATCH] build-configs(update) --- run | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/run b/run index 233f613..b209933 100755 --- a/run +++ b/run @@ -2,7 +2,8 @@ # Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs. -set -eu +set -o errexit +set -o pipefail # Run automated tests as part of the Continuous Integration (CI) pipeline. function ci:test { @@ -21,9 +22,7 @@ function ci:test { composer install --quiet --no-progress - test --testdox - quality } # Run a command within the php container. @@ -31,9 +30,6 @@ function cmd { docker compose exec php "${@}" } -function coding-standards { - cmd phpcs "${@}" -} function composer { _exec php composer "${@}" @@ -65,10 +61,6 @@ function lint:dockerfile { hadolint/hadolint hadolint --ignore DL3008 --ignore DL3059 -t style "${@}" - < Dockerfile } -function quality { - coding-standards - static-analysis -} function start { cp -v --no-clobber .env.example .env @@ -76,22 +68,13 @@ function start { docker compose up -d } -function static-analysis { - cmd phpstan --memory-limit=-1 --no-progress "${@}" -} function stop { docker compose down } -function test { - _exec php phpunit --colors=always "${@}" -} function test:commit { - test --testdox --testsuite functional - test --testdox --testsuite kernel - test --testdox --testsuite unit quality } @@ -113,7 +96,7 @@ function _run { } # Include any local tasks. -source run.local || true +[[ -e run.local ]] && source run.local TIMEFORMAT=$'\nTask completed in %3lR' time "${@:-help}"