File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 11
11
# %
12
12
# %OPTIONS ⚙️
13
13
# % -v, --validate Validate the AsciiDoc source
14
+ # % -l, --lint-topicmaps Lint topic-map YAML
14
15
# % -p, --preview $DISTRO "$PRODUCT_NAME" $VERSION Use --preview to run with default options
15
16
# % -h, --help Print this help
16
17
# %
17
18
# %EXAMPLES 🤔
18
19
# % ./scripts/prow-smoke-test.sh --validate
20
+ # % ./scripts/prow-smoke-test.sh --lint-topicmaps
19
21
# % ./scripts/prow-smoke-test.sh --preview
20
22
# % ./scripts/prow-smoke-test.sh --preview openshift-rosa
21
23
# % ./scripts/prow-smoke-test.sh --preview openshift-pipelines "Red Hat OpenShift Pipelines" 1.14
@@ -78,4 +80,9 @@ elif [[ "$TEST" == "--validate" || "$TEST" == "-v" ]]; then
78
80
echo " "
79
81
echo " 🚧 Validating the docs..."
80
82
$CONTAINER_ENGINE run --rm -it -v " $( pwd) " :${CONTAINER_WORKDIR} :Z $CONTAINER_IMAGE sh -c ' scripts/check-asciidoctor-build.sh && python3 build_for_portal.py --distro ' ${DISTRO} ' --product "' " ${PRODUCT_NAME} " ' " --version ' ${VERSION} ' --no-upstream-fetch && python3 makeBuild.py'
83
+
84
+ elif [[ " $TEST " == " --lint-topicmaps" || " $TEST " == " -l" ]]; then
85
+ echo " "
86
+ echo " 🚧 Linting the topicmap YAML..."
87
+ $CONTAINER_ENGINE run --rm -it -v " $( pwd) " :${CONTAINER_WORKDIR} :Z $CONTAINER_IMAGE sh -c ' yamllint _topic_maps'
81
88
fi
You can’t perform that action at this time.
0 commit comments