Skip to content

Commit 8a27bc3

Browse files
abayerafrittoli
authored andcommitted
Add OWNERS, presubmit-tests.sh, and an updated go.mod and .gitignore
Signed-off-by: Andrew Bayer <[email protected]>
1 parent 424739b commit 8a27bc3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+18945
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ refdocs
1414

1515
# goreleaser output
1616
dist
17+
18+
bin

OWNERS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# The OWNERS file is used by prow to automatically merge approved PRs.
2+
3+
approvers:
4+
- abayer
5+
- afrittoli
6+
- bobcatfish
7+
- dibyom
8+
- jerop
9+
- lbernick
10+
- vdemeester

go.mod

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
module github.com/ahmetb/gen-crd-api-reference-docs
22

3-
go 1.15
3+
go 1.17
44

55
require (
6-
github.com/pkg/errors v0.8.1
7-
github.com/pmezard/go-difflib v1.0.0 // indirect
8-
github.com/russross/blackfriday/v2 v2.0.1
9-
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
6+
github.com/pkg/errors v0.9.1
7+
github.com/russross/blackfriday/v2 v2.1.0
8+
github.com/tektoncd/plumbing v0.0.0-20220728121531-8a725746af4f
109
k8s.io/gengo v0.0.0-20201203183100-97869a43a9d9
1110
k8s.io/klog v0.2.0
1211
)
12+
13+
require (
14+
github.com/go-logr/logr v0.2.0 // indirect
15+
github.com/pmezard/go-difflib v1.0.0 // indirect
16+
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
17+
k8s.io/klog/v2 v2.4.0 // indirect
18+
)

go.sum

Lines changed: 1161 additions & 0 deletions
Large diffs are not rendered by default.

hack/tools.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//go:build tools
2+
// +build tools
3+
4+
package tools
5+
6+
import (
7+
_ "github.com/tektoncd/plumbing"
8+
_ "github.com/tektoncd/plumbing/scripts"
9+
)

test/presubmit-tests.sh

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2018 The Tekton Authors
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# This script runs the presubmit tests; it is started by prow for each PR.
18+
# For convenience, it can also be executed manually.
19+
# Running the script without parameters, or with the --all-tests
20+
# flag, causes all tests to be executed, in the right order.
21+
# Use the flags --build-tests, --unit-tests and --integration-tests
22+
# to run a specific set of tests.
23+
24+
# Markdown linting failures don't show up properly in Gubernator resulting
25+
# in a net-negative contributor experience.
26+
export DISABLE_MD_LINTING=1
27+
export TEST_FOLDER=$(pwd)
28+
export GO111MODULE=on
29+
30+
source $(dirname $0)/../vendor/github.com/tektoncd/plumbing/scripts/presubmit-tests.sh
31+
32+
function pre_build_tests() {
33+
pushd ${TEST_FOLDER}
34+
}
35+
36+
function pre_unit_tests() {
37+
pushd ${TEST_FOLDER}
38+
}
39+
40+
function pre_integration_tests() {
41+
pushd ${TEST_FOLDER}
42+
}
43+
44+
function post_build_tests() {
45+
popd
46+
}
47+
48+
function post_unit_tests() {
49+
popd
50+
}
51+
52+
function post_integration_tests() {
53+
popd
54+
}
55+
56+
# TODO(abayer): Switch Prow config to call unit tests directly, since build tests don't do anything useful
57+
function build_tests() {
58+
unit_tests
59+
}
60+
61+
# June 28th 2019: work around https://github.com/tektoncd/plumbing/issues/44
62+
function unit_tests() {
63+
local failed=0
64+
echo "Using overridden unit_tests"
65+
go test -v -race ./... || failed=1
66+
echo "unit_tests returning $@"
67+
return ${failed}
68+
}
69+
70+
# We use the default build, unit and integration test runners.
71+
main $@

vendor/github.com/go-logr/logr/LICENSE

Lines changed: 201 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)