From b8750bdb9ea88c96481506726b1c9b3e0aafabd7 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 1 Jul 2021 12:06:37 +0200 Subject: [PATCH] Make it easier to test all extensions Test: zip --- scripts/ci-test-extensions | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/ci-test-extensions b/scripts/ci-test-extensions index 0c786ab..634cef7 100755 --- a/scripts/ci-test-extensions +++ b/scripts/ci-test-extensions @@ -1,5 +1,13 @@ #!/bin/sh +# Syntax: +# - ci-test-extensions from-commits "" +# Automatically detect the extensions to be tested by inspecting the git commits +# - ci-test-extensions from-list "" +# Test the specified extensions +# - ci-test-extensions all +# Test all the supported extensions +# # Global environment variables used: # - IPETEST_DOCKER_DISTRO (required) the handle of the docker distibution to be used (eg 'buster', 'alpine3.14') # - IPETEST_ONLY_PHPVERSIONS (optional) a space-separeted list of PHP versions: if set, we'll test only those PHP versions (eg '8.0 8.1') @@ -352,6 +360,9 @@ case "${1:-}" in from-list) EXTENSIONS_TO_BE_TESTED="${2:-}" ;; + all) + EXTENSIONS_TO_BE_TESTED="$(cat "$CI_BUILD_DIR/data/supported-extensions" | cut -d' ' -f1)" + ;; *) if test -z "${1:-}"; then printf 'Missing source of extensions to be tested\n' >&2