mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
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>
This commit is contained in:
committed by
GitHub
parent
019b62b82d
commit
a59b9877f4
@@ -1,13 +1,14 @@
|
||||
#!/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 goget-tools
|
||||
make validate
|
||||
make test
|
||||
) |& tee "/tmp/$LOGFILE"
|
||||
RESULT=${PIPESTATUS[0]}
|
||||
|
||||
20
.ibm/pipelines/validate.sh
Normal file
20
.ibm/pipelines/validate.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to run validate test on IBM Cloud
|
||||
# This script needs update if there is any change in steps of executing validate test
|
||||
|
||||
LOGFILE="pr-${GIT_PR_NUMBER}-Validate-tests-${BUILD_NUMBER}"
|
||||
|
||||
source .ibm/pipelines/functions.sh
|
||||
|
||||
(
|
||||
set -e
|
||||
make goget-tools
|
||||
make validate
|
||||
) |& tee "/tmp/$LOGFILE"
|
||||
RESULT=${PIPESTATUS[0]}
|
||||
|
||||
ibmcloud login --apikey "${API_KEY}" -r "${IBM_REGION}"
|
||||
save_logs "${LOGFILE}" "Validate Tests" ${RESULT}
|
||||
|
||||
exit ${RESULT}
|
||||
Reference in New Issue
Block a user