-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
* Fixed access to read only variable CHANGEDFILES and removed some bogus files * plugin(admin): updated go.mod * some minor updates * Distribute OWNERS over subdirectories * chore: Fix syntax error * add missing test files
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
approvers: | ||
- sixolet | ||
- cppforlife | ||
- rhuss | ||
- maximilien | ||
- navidshaikh | ||
- zhanggbj | ||
# TOC members as a fallback | ||
- mattmoor | ||
- evankanderson |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
kn-admin* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
approvers: | ||
- zhanggbj |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Copyright 2020 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. | ||
|
||
# ========================================== | ||
# Unit and Build tests | ||
|
||
|
||
# We can't use MD checks now as they will propagate into | ||
# the plugins' vendor/ dir | ||
# (the filter in markdown_build_tests() in test-infra/scripts/presumit-tests.sh is | ||
# not strong enough | ||
export DISABLE_MD_LINTING=1 | ||
export DISABLE_MD_LINK_CHECK=1 | ||
|
||
export PRESUBMIT_TEST_FAIL_FAST=1 | ||
export GO111MODULE=on | ||
|
||
source $(dirname $0)/../../../test-infra/scripts/presubmit-tests.sh | ||
|
||
# Run cross platform build to ensure kn compiles for Linux, macOS and Windows | ||
function post_build_tests() { | ||
local failed=0 | ||
header "Ensuring cross platform build" | ||
./hack/build.sh -x || failed=1 | ||
if (( failed )); then | ||
results_banner "Cross platform build" ${failed} | ||
exit ${failed} | ||
fi | ||
} | ||
|
||
# Run the unit tests with an additional flag '-mod=vendor' to avoid | ||
# downloading the deps in unit tests CI job | ||
function unit_tests() { | ||
report_go_test -race -mod=vendor ./... || failed=1 | ||
} | ||
|
||
# We use the default build and integration test runners. | ||
main "$@" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.