diff --git a/.ibm/pipelines/kubernetes-docs-tests.sh b/.ibm/pipelines/kubernetes-docs-tests.sh new file mode 100755 index 00000000000..14387ed7189 --- /dev/null +++ b/.ibm/pipelines/kubernetes-docs-tests.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +LOGFILE="pr-${GIT_PR_NUMBER}-kubernetes-docs-tests-${BUILD_NUMBER}" + +source .ibm/pipelines/functions.sh + +ibmcloud login --apikey "${API_KEY_QE}" +ibmcloud target -r "${IBM_REGION}" +ibmcloud ks cluster config --cluster "${IBM_KUBERNETES_ID}" --admin + +cleanup_namespaces +( + set -e + make install + make test-doc-automation +) |& tee "/tmp/${LOGFILE}" + +RESULT=${PIPESTATUS[0]} + +save_logs "${LOGFILE}" "Kubernetes Docs Tests" ${RESULT} + +exit ${RESULT} diff --git a/Makefile b/Makefile index eb1bb9cc501..676b7e7a364 100644 --- a/Makefile +++ b/Makefile @@ -216,4 +216,4 @@ test-e2e: .PHONY: test-doc-automation test-doc-automation: - $(RUN_GINKGO) $(GINKGO_FLAGS) --junit-report="test-doc-automation.xml" tests/documentation/... \ No newline at end of file + $(RUN_GINKGO) $(GINKGO_FLAGS_ONE) --junit-report="test-doc-automation.xml" tests/documentation/...