Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
ffd570fe
Commit
ffd570fe
authored
Jan 30, 2015
by
Emil Hessman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile: add vet target
parent
3165b0c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
Makefile
Makefile
+14
-1
No files found.
Makefile
View file @
ffd570fe
TEST
?=
./...
VETARGS
?=
-asmdecl
-atomic
-bool
-buildtags
-copylocks
-methods
\
-nilfunc
-printf
-rangeloops
-shift
-structtags
-unsafeptr
default
:
test
...
...
@@ -10,6 +12,7 @@ dev:
test
:
go
test
$(TEST)
$(TESTARGS)
-timeout
=
10s
@
$(MAKE)
vet
testrace
:
go
test
-race
$(TEST)
$(TESTARGS)
...
...
@@ -17,4 +20,14 @@ testrace:
updatedeps
:
go get
-d
-v
-p
2 ./...
.PHONY
:
bin default test updatedeps
vet
:
@
go tool vet 2>/dev/null
;
if
[
$$
?
-eq
3
]
;
then
\
go get golang.org/x/tools/cmd/vet
;
\
fi
@
go tool vet
$(VETARGS)
.
;
if
[
$$
?
-eq
1
]
;
then
\
echo
""
;
\
echo
"Vet found suspicious constructs. Please check the reported constructs"
;
\
echo
"and fix them if necessary before submitting the code for reviewal."
;
\
fi
.PHONY
:
bin default test updatedeps vet
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