mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Use an image with pre-installed oc/kubectl/ibmcloud for IBM Pipelines * Increase time for unit tests (very long on single CPU VM) * Dockerfile for build image
19 lines
331 B
Bash
19 lines
331 B
Bash
#!/bin/bash
|
|
|
|
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]}
|
|
|
|
ibmcloud login --apikey "${API_KEY}" -r "${IBM_REGION}"
|
|
save_logs "${LOGFILE}" "Unit Tests"
|
|
|
|
exit ${RESULT}
|