mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-12-03 18:07:47 +01:00
Merge pull request #371 from mlocati/test-all-extensions-easier
Make it easier to test all extensions
This commit is contained in:
commit
be0073625a
@ -1,5 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Syntax:
|
||||||
|
# - ci-test-extensions from-commits "<commit range>"
|
||||||
|
# Automatically detect the extensions to be tested by inspecting the git commits
|
||||||
|
# - ci-test-extensions from-list "<space-separated extensions>"
|
||||||
|
# Test the specified extensions
|
||||||
|
# - ci-test-extensions all
|
||||||
|
# Test all the supported extensions
|
||||||
|
#
|
||||||
# Global environment variables used:
|
# Global environment variables used:
|
||||||
# - IPETEST_DOCKER_DISTRO (required) the handle of the docker distibution to be used (eg 'buster', 'alpine3.14')
|
# - 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')
|
# - 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)
|
from-list)
|
||||||
EXTENSIONS_TO_BE_TESTED="${2:-}"
|
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
|
if test -z "${1:-}"; then
|
||||||
printf 'Missing source of extensions to be tested\n' >&2
|
printf 'Missing source of extensions to be tested\n' >&2
|
||||||
|
Loading…
Reference in New Issue
Block a user