Files
odo/scripts/openshiftci-Nightly-SBO-tests.sh
Priti Kumari d37298a367 Fix reports directory for operatorhub nightly tests (#4972)
* Fix reports directory for operatorhub nightly tests

* copy reports for project, login logout and operatorhub tests to artifacts dir reports

* one line command for copying both reports
2021-08-09 13:24:35 +00:00

36 lines
725 B
Bash
Executable File

#!/bin/sh
# fail if some commands fails
set -e
# show commands
set -x
export CI="openshift"
export NIGHTLY=true
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
# Check login user name for debugging purpose
oc whoami
# Operatorhub integration tests
make test-operator-hub
cp -r tests/reports $ARTIFACT_DIR
oc logout