-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae7eb30
commit 1556faf
Showing
6 changed files
with
89 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2018 The Knative Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# This script calls out to scripts in knative/test-infra to setup a cluster | ||
# and deploy the Pipeline CRD to it for running integration tests. | ||
|
||
source $(dirname $0)/e2e-common.sh | ||
|
||
# Script entry point. | ||
|
||
initialize $@ | ||
|
||
header "Setting up environment" | ||
|
||
# Handle failures ourselves, so we can dump useful info. | ||
set +o errexit | ||
set +o pipefail | ||
|
||
echo ">> Deploying Pipeline CRD" | ||
ko apply -f config/ || fail_test "Build pipeline installation failed" | ||
|
||
for res in pipelineresources tasks pipelines taskruns pipelineruns; do | ||
kubectl delete --ignore-not-found=true ${res}.pipeline.knative.dev --all | ||
done | ||
|
||
# Run the tests | ||
failed=0 | ||
for test in taskrun pipelinerun; do | ||
header "Running YAML e2e tests for ${test}s" | ||
if ! run_yaml_tests ${test}; then | ||
echo "ERROR: one or more YAML tests failed" | ||
failed=1 | ||
output_yaml_test_results ${test} | ||
fi | ||
done | ||
|
||
(( failed )) && fail_test | ||
|
||
success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters