Files
odo/.ibm/pipelines/unit-tests.sh
Anand Kumar Singh a59b9877f4 split unit test into unit test and validate test (#5355)
* split unit test into unit test and validate test

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* add comments and remove goget-tools from unit test

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-01-24 03:48:19 -05:00

20 lines
430 B
Bash

#!/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
(
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}