Files
odo/.ibm/pipelines/kubernetes-tests.sh
Rodolfo Napoles f280a61b0d refactoring generic-test (#5628)
* rebasing

* Incorporated additional feedback, removed make test-generic from openshift-tests.sh as it runs test-integration
2022-04-28 15:50:04 -04:00

28 lines
562 B
Bash
Executable File

#!/bin/bash
LOGFILE="pr-${GIT_PR_NUMBER}-kubernetes-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-integration-devfile
make test-interactive
make test-e2e-devfile
make test-cmd-project
make test-generic
) |& tee "/tmp/${LOGFILE}"
RESULT=${PIPESTATUS[0]}
save_logs "${LOGFILE}" "Kubernetes Tests" ${RESULT}
exit ${RESULT}