mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Integration tests are already covered a lot by the CI on GitHub and tend to be somewhat flaky on OpenShift. We don't need to run them all on OpenShift.
37 lines
717 B
Bash
Executable File
37 lines
717 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# fail if some commands fails
|
|
set -e
|
|
# show commands
|
|
set -x
|
|
|
|
export CI="openshift"
|
|
make configure-installer-tests-cluster
|
|
make bin
|
|
mkdir -p $GOPATH/bin
|
|
make goget-ginkgo
|
|
export PATH="$PATH:$(pwd):$GOPATH/bin"
|
|
export CUSTOM_HOMEDIR=$ARTIFACT_DIR
|
|
|
|
# Copy kubeconfig to temporary kubeconfig file
|
|
# Read and Write permission to temporary kubeconfig file
|
|
TMP_DIR=$(mktemp -d)
|
|
cp $KUBECONFIG $TMP_DIR/kubeconfig
|
|
chmod 640 $TMP_DIR/kubeconfig
|
|
export KUBECONFIG=$TMP_DIR/kubeconfig
|
|
|
|
# Login as developer
|
|
oc login -u developer -p password@123 --insecure-skip-tls-verify
|
|
|
|
# Check login user name for debugging purpose
|
|
oc whoami
|
|
|
|
# E2e tests
|
|
make test-e2e || error=true
|
|
|
|
if [ $error ]; then
|
|
exit -1
|
|
fi
|
|
|
|
oc logout
|