Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add script that allows you to run tests against plugins in PRs #418

Closed
wants to merge 11 commits into from
31 changes: 31 additions & 0 deletions .ci/cico-plugin-registry-pr-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash
# Copyright (c) 2018 Red Hat, Inc.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html

set -x

echo "========Starting PR Check test job $(date)========"
# shellcheck disable=SC1091
source .ci/functional-tests-utils.sh
# shellcheck disable=SC1091
source .ci/plugin-tests.sh
setupEnvs
installKVM
installDependencies
installCheCtl
installAndStartMinishift
createCert
loginToOpenshiftAndSetDevRole
deployCheIntoCluster
createTestUserAndObtainUserToken
downloadAndCheckoutBranch
downloadFiles
getAvailableDevfiles
createTestWorkspaceAndRunTest
echo "=========================== THIS IS POST TEST ACTIONS =============================="
archiveArtifacts "che-plugin-registry-test"
echo '=======================FAILURE STATUS=======================:'"$TESTS_PASSED"
if [[ "$TESTS_PASSED" == "false" ]]; then exit 1; fi
Loading