mirror of
https://github.com/mlocati/docker-php-extension-installer
synced 2025-05-11 09:32:41 +00:00
Show duration of extension tests
This commit is contained in:
parent
3e14522293
commit
dc8ae7f666
1 changed files with 4 additions and 1 deletions
|
@ -237,9 +237,12 @@ testExtensionFor() {
|
||||||
fi
|
fi
|
||||||
printf ' - Docker image: %s\n' "$testExtensionFor_Image"
|
printf ' - Docker image: %s\n' "$testExtensionFor_Image"
|
||||||
testExtensionFor_out="$(mktemp)"
|
testExtensionFor_out="$(mktemp)"
|
||||||
|
testExtensionFor_start=$(date +%s)
|
||||||
if $(docker run --rm --volume "$CI_BUILD_DIR:/app" --workdir /app "$testExtensionFor_Image" sh -c "./install-php-extensions $1 && php ./scripts/check-installed-extension.php $1" >"$testExtensionFor_out" 2>&1); then
|
if $(docker run --rm --volume "$CI_BUILD_DIR:/app" --workdir /app "$testExtensionFor_Image" sh -c "./install-php-extensions $1 && php ./scripts/check-installed-extension.php $1" >"$testExtensionFor_out" 2>&1); then
|
||||||
|
testExtensionFor_end=$(date +%s)
|
||||||
|
testExtensionFor_delta=$(expr $testExtensionFor_end - $testExtensionFor_start)
|
||||||
rm -rf "$testExtensionFor_out"
|
rm -rf "$testExtensionFor_out"
|
||||||
printf ' - Passed\n'
|
printf ' - Passed in %s seconds\n' $testExtensionFor_delta
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
printf ' - FAILED!\n' >&2
|
printf ' - FAILED!\n' >&2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue