mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-19 07:21:16 +00:00
Add module integration tests
This commit is contained in:
29
tests/mods/01-test-modules.sh
Executable file
29
tests/mods/01-test-modules.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -u
|
||||
set -o pipefail
|
||||
|
||||
CWD="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
|
||||
|
||||
IMAGE="${1}"
|
||||
VERSION="${2}"
|
||||
FLAVOUR="${3}"
|
||||
|
||||
|
||||
# shellcheck disable=SC1090
|
||||
. "${CWD}/../.lib.sh"
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Testing
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
ERROR=0
|
||||
for dir in $( ls -1 "${CWD}/modules/" ); do
|
||||
if ! "${CWD}/modules.sh" "${IMAGE}" "${VERSION}" "${FLAVOUR}" "${dir}"; then
|
||||
ERROR="$(( ERROR + 1 ))"
|
||||
fi
|
||||
done
|
||||
|
||||
exit "${ERROR}"
|
||||
Reference in New Issue
Block a user