Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
golang
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitLab
CI
golang
Merge requests
!1
Add common Makefile
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add common Makefile
add/makefile
into
main
Overview
0
Commits
2
Pipelines
0
Changes
2
Merged
Erick Hitter
requested to merge
add/makefile
into
main
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
2
Expand
See
#1 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
a0881c1c
2 commits,
2 years ago
2 files
+
39
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
files/Makefile
0 → 100644
+
37
−
0
Options
PKG
:=
"
${
CI_SERVER_HOST
}
/
${
CI_PROJECT_NAMESPACE
}
/
$(
CI_PROJECT_NAME
)
"
PKG_LIST
:=
$(
shell go list
${
PKG
}
/... |
grep
-v
/vendor/
)
GO_FILES
:=
$(
shell find
.
-name
'*.go'
|
grep
-v
/vendor/ |
grep
-v
_test.go
)
.PHONY
:
all dep build clean test coverage coverhtml lint
all
:
build
lint
:
@
golint
-set_exit_status
${
PKG_LIST
}
test
:
@
go
test
-v
${
PKG_LIST
}
race
:
dep
@
go
test
-v
-race
${
PKG_LIST
}
msan
:
dep
@
go
test
-v
-msan
${
PKG_LIST
}
coverage
:
./tools/coverage.sh
;
coverhtml
:
./tools/coverage.sh html
;
dep
:
@
go get
-v
./...
build
:
dep
@
gox
-output
=
"
${
CI_PROJECT_DIR
}
/
${
CI_PROJECT_NAME
}
/{{.Dir}}_{{.OS}}_{{.Arch}}"
-parallel
=
6
-osarch
'!darwin/386'
clean
:
@
rm
-rf
"
${
CI_PROJECT_DIR
}
/
${
CI_PROJECT_NAME
}
"
help
:
@
grep
-h
-E
'^[a-zA-Z_-]+:.*?## .*$$'
$(
MAKEFILE_LIST
)
|
awk
'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
Loading