Files
odo/.ibm/pipelines/unit-tests.sh
Philippe Martin 029c5387d5 Skip tests if all changes in docs (#6870)
* Skip tests if all changes in website (and .ibm for testing this PR)

* Use Merge  base

* Add rule for podman-test on GH Actions
2023-06-06 07:32:52 -04:00

22 lines
443 B
Bash
Executable File

#!/bin/bash
# Script to run unit test on IBM Cloud
# This script needs update if there is any change in the unit test make target command
LOGFILE="pr-${GIT_PR_NUMBER}-unit-tests-${BUILD_NUMBER}"
source .ibm/pipelines/functions.sh
skip_if_only
(
set -e
make test
) |& tee "/tmp/$LOGFILE"
RESULT=${PIPESTATUS[0]}
ibmcloud login --apikey "${API_KEY}" -r "${IBM_REGION}"
save_logs "${LOGFILE}" "Unit Tests" ${RESULT}
exit ${RESULT}