mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Define label for integration tests not needing cluster (#6242)
This commit is contained in:
@@ -15,7 +15,7 @@ export SKIP_USER_LOGIN_TESTS=true
|
||||
export DEVFILE_PROXY="$(kubectl get svc -n devfile-proxy nginx -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' || true)"
|
||||
echo Using Devfile proxy: ${DEVFILE_PROXY}
|
||||
make install
|
||||
make test-integration
|
||||
make test-integration-cluster
|
||||
make test-e2e
|
||||
) |& tee "/tmp/${LOGFILE}"
|
||||
|
||||
|
||||
20
.ibm/pipelines/nocluster-tests.sh
Executable file
20
.ibm/pipelines/nocluster-tests.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
LOGFILE="pr-${GIT_PR_NUMBER}-nocluster-tests-${BUILD_NUMBER}"
|
||||
|
||||
source .ibm/pipelines/functions.sh
|
||||
|
||||
ibmcloud login --apikey "${API_KEY_QE}"
|
||||
ibmcloud target -r "${IBM_REGION}"
|
||||
|
||||
(
|
||||
set -e
|
||||
make install
|
||||
make test-integration-no-cluster
|
||||
) |& tee "/tmp/${LOGFILE}"
|
||||
|
||||
RESULT=${PIPESTATUS[0]}
|
||||
|
||||
save_logs "${LOGFILE}" "NoCluster Tests" ${RESULT}
|
||||
|
||||
exit ${RESULT}
|
||||
@@ -16,7 +16,7 @@ cleanup_namespaces
|
||||
export DEVFILE_PROXY="$(kubectl get svc -n devfile-proxy nginx -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' || true)"
|
||||
echo Using Devfile proxy: ${DEVFILE_PROXY}
|
||||
make install
|
||||
make test-integration
|
||||
make test-integration-cluster
|
||||
make test-e2e
|
||||
) |& tee "/tmp/${LOGFILE}"
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ function Run-Test {
|
||||
Shout "Create Binary"
|
||||
make install
|
||||
Shout "Running test"
|
||||
make test-integration | tee -a C:\Users\Administrator.ANSIBLE-TEST-VS\AppData\Local\Temp\$LOGFILE
|
||||
make test-integration-cluster | tee -a C:\Users\Administrator.ANSIBLE-TEST-VS\AppData\Local\Temp\$LOGFILE
|
||||
Check-ExitCode $LASTEXITCODE
|
||||
make test-e2e | tee -a C:\Users\Administrator.ANSIBLE-TEST-VS\AppData\Local\Temp\$LOGFILE
|
||||
Check-ExitCode $LASTEXITCODE
|
||||
|
||||
Reference in New Issue
Block a user