Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
7bc728bc
Commit
7bc728bc
authored
Apr 29, 2016
by
Adam Reese
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #628 from adamreese/feat/build-faster
feat(Makefile): go build optimizations
parents
3c4ae013
aca9f0f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Makefile
Makefile
+3
-3
release_server_test.go
cmd/tiller/release_server_test.go
+1
-1
No files found.
Makefile
View file @
7bc728bc
...
...
@@ -15,13 +15,11 @@ GOFLAGS :=
BINDIR
:=
./bin
BINARIES
:=
helm tiller
include
versioning.mk
.PHONY
:
all
all
:
build
.PHONY
:
build
build
:
GOFLAGS += -
a -installsuffix cgo
build
:
GOFLAGS += -
i
build
:
@
for
i
in
$(BINARIES)
;
do
\
CGO_ENABLED
=
0
GOOS
=
$(GOOS)
GOARCH
=
$(GOARCH)
$(GO)
build
-o
$(BINDIR)
/
$$
i
$(GOFLAGS)
-tags
'
$(TAGS)
'
-ldflags
'
$(LDFLAGS)
'
./cmd/
$$
i
||
exit
1
;
\
...
...
@@ -38,6 +36,7 @@ check-docker:
docker-binary
:
GOOS = linux
docker-binary
:
GOARCH = amd64
docker-binary
:
BINDIR = ./rootfs
docker-binary
:
GOFLAGS += -a -installsuffix cgo
docker-binary
:
build
.PHONY
:
docker-build
...
...
@@ -71,3 +70,4 @@ coverage:
bootstrap
:
glide
install
include
versioning.mk
cmd/tiller/release_server_test.go
View file @
7bc728bc
...
...
@@ -21,7 +21,7 @@ func rsFixture() *releaseServer {
}
func
releaseMock
()
*
release
.
Release
{
date
:=
timestamp
.
Timestamp
{
242085845
,
0
}
date
:=
timestamp
.
Timestamp
{
Seconds
:
242085845
,
Nanos
:
0
}
return
&
release
.
Release
{
Name
:
"angry-panda"
,
Info
:
&
release
.
Info
{
...
...
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