Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nfs-subdir-external-provisioner
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
nfs-subdir-external-provisioner
Commits
33d58fdc
Unverified
Commit
33d58fdc
authored
Jan 25, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jan 25, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5 from pohly/test-enhancements
test enhancements
parents
be8a4400
b0336b55
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
build.make
build.make
+11
-7
No files found.
build.make
View file @
33d58fdc
...
@@ -51,11 +51,15 @@ IMAGE_TAGS+=$(shell tagged="$$(git describe --tags --match='v*' --abbrev=0)"; if
...
@@ -51,11 +51,15 @@ IMAGE_TAGS+=$(shell tagged="$$(git describe --tags --match='v*' --abbrev=0)"; if
IMAGE_NAME
=
$(REGISTRY_NAME)
/
$*
IMAGE_NAME
=
$(REGISTRY_NAME)
/
$*
ifdef
V
ifdef
V
# Adding "-alsologtostderr" assumes that all test binaries contain glog. This is not guaranteed.
TESTARGS
=
-v
-args
-alsologtostderr
-v
5
TESTARGS
=
-v
-args
-alsologtostderr
-v
5
else
else
TESTARGS
=
TESTARGS
=
endif
endif
# Specific packages can be excluded from each of the tests below by setting the *_FILTER_CMD variables
# to something like "| grep -v 'github.com/kubernetes-csi/project/pkg/foobar'". See usage below.
build-%
:
build-%
:
mkdir
-p
bin
mkdir
-p
bin
CGO_ENABLED
=
0
GOOS
=
linux go build
-a
-ldflags
'-X main.version=
$(REV)
-extldflags "-static"'
-o
./bin/
$*
./cmd/
$*
CGO_ENABLED
=
0
GOOS
=
linux go build
-a
-ldflags
'-X main.version=
$(REV)
-extldflags "-static"'
-o
./bin/
$*
./cmd/
$*
...
@@ -93,20 +97,20 @@ test:
...
@@ -93,20 +97,20 @@ test:
.PHONY
:
test-go
.PHONY
:
test-go
test
:
test-go
test
:
test-go
test-go
:
test-go
:
@
echo
;
echo
$@
@
echo
;
echo
"###
$@
:"
go
test
`
go list ./... |
grep
-v
'vendor'
`
$(TESTARGS)
go
test
`
go list ./... |
grep
-v
'vendor'
$(TEST_GO_FILTER_CMD)
`
$(TESTARGS)
.PHONY
:
test-vet
.PHONY
:
test-vet
test
:
test-vet
test
:
test-vet
test-vet
:
test-vet
:
@
echo
;
echo
$@
@
echo
;
echo
"###
$@
:"
go vet
`
go list ./... |
grep
-v
vendor
`
go vet
`
go list ./... |
grep
-v
vendor
$(TEST_VET_FILTER_CMD)
`
.PHONY
:
test-fmt
.PHONY
:
test-fmt
test
:
test-fmt
test
:
test-fmt
test-fmt
:
test-fmt
:
@
echo
;
echo
$@
@
echo
;
echo
"###
$@
:"
files
=
$$
(
find
.
-name
'*.go'
|
grep
-v
'./vendor'
)
;
\
files
=
$$
(
find
.
-name
'*.go'
|
grep
-v
'./vendor'
$(TEST_FMT_FILTER_CMD)
)
;
\
if
[
$$
(
gofmt
-d
$$
files |
wc
-l
)
-ne
0
]
;
then
\
if
[
$$
(
gofmt
-d
$$
files |
wc
-l
)
-ne
0
]
;
then
\
echo
"formatting errors:"
;
\
echo
"formatting errors:"
;
\
gofmt
-d
$$
files
;
\
gofmt
-d
$$
files
;
\
...
@@ -116,5 +120,5 @@ test-fmt:
...
@@ -116,5 +120,5 @@ test-fmt:
.PHONY
:
test-subtree
.PHONY
:
test-subtree
test
:
test-subtree
test
:
test-subtree
test-subtree
:
test-subtree
:
@
echo
;
echo
$@
@
echo
;
echo
"###
$@
:"
./release-tools/verify-subtree.sh release-tools
./release-tools/verify-subtree.sh release-tools
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment