Show duration of extension tests
parent
3e14522293
commit
dc8ae7f666
|
@ -237,9 +237,12 @@ testExtensionFor() {
|
|||
fi
|
||||
printf ' - Docker image: %s\n' "$testExtensionFor_Image"
|
||||
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
|
||||
testExtensionFor_end=$(date +%s)
|
||||
testExtensionFor_delta=$(expr $testExtensionFor_end - $testExtensionFor_start)
|
||||
rm -rf "$testExtensionFor_out"
|
||||
printf ' - Passed\n'
|
||||
printf ' - Passed in %s seconds\n' $testExtensionFor_delta
|
||||
return 0
|
||||
fi
|
||||
printf ' - FAILED!\n' >&2
|
||||
|
|
Loading…
Reference in New Issue