Commit dc6cb08d authored by Stefan Bürk's avatar Stefan Bürk
Browse files

[TASK] Extend 'runTests.sh' to clean rendered documentation

This change adds the ability to clean rendered documentation
folder and files in all system extension folders in one go.
Mentioned folders are `typo3/sysext/*/Documentation-GENERATED-temp`.

Added command/testsuite:

* `Build/Scripts/runTests.sh -s cleanRenderedDocumentation`

Additionally the already combined cleaning command `-s clean`
is extended to delete rendered documentation in the same run.

Resolves: #97673
Releases: main, 11.5, 10.4
Change-Id: I344f897769cd5f475d43db67dd1b27693f49a658
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74717


Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
parent de2394f2
......@@ -105,6 +105,13 @@ cleanTestFiles() {
echo "done"
}
cleanRenderedDocumentationFiles() {
# > caches
echo -n "Clean rendered documentation files ... " ; rm -rf \
../../../typo3/sysext/*/Documentation-GENERATED-temp ; \
echo "done"
}
# Load help text into $HELP
# @todo Remove xdebug / php8.2 note after PHP8.2 image contains working xdebug.
read -r -d '' HELP <<EOF
......@@ -142,6 +149,7 @@ Options:
- clean: clean up build, cache and testing related files and folders
- cleanBuild: clean up build related files and folders
- cleanCache: clean up cache related files and folders
- cleanRenderedDocumentation: clean up rendered documentation files and folders (Documentation-GENERATED-temp)
- cleanTests: clean up test related files and folders
- composerInstall: "composer install"
- composerInstallMax: "composer update", with no platform.php config.
......@@ -635,6 +643,7 @@ case ${TEST_SUITE} in
clean)
cleanBuildFiles
cleanCacheFiles
cleanRenderedDocumentationFiles
cleanTestFiles
;;
cleanBuild)
......@@ -643,6 +652,9 @@ case ${TEST_SUITE} in
cleanCache)
cleanCacheFiles
;;
cleanRenderedDocumentation)
cleanRenderedDocumentationFiles
;;
cleanTests)
cleanTestFiles
;;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment