Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-workhorse
Commits
ad6899b0
Commit
ad6899b0
authored
Apr 04, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export GOPATH in the Makefile
parent
405504cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Makefile
Makefile
+4
-4
No files found.
Makefile
View file @
ad6899b0
PREFIX
=
/usr/local
VERSION
=
$(
shell
git describe
)
-
$(
shell
date
-u
+%Y%m%d.%H%M%S
)
GOPATH
=
$(
shell
pwd
)
/_build
GOBUILD
=
GOPATH
=
${GOPATH}
go build
-ldflags
"-X main.Version=
${VERSION}
"
export
GOPATH
=
$(
shell
pwd
)
/_build
GOBUILD
=
go build
-ldflags
"-X main.Version=
${VERSION}
"
PKG
=
gitlab.com/gitlab-org/gitlab-workhorse
all
:
clean-build gitlab-zip-cat gitlab-zip-metadata gitlab-workhorse
...
...
@@ -26,8 +26,8 @@ _build:
.PHONY
:
test
test
:
testdata/data/group/test.git clean-build clean-workhorse all
GOPATH
=
${GOPATH}
go
fmt
${PKG}
/... |
awk
'{ print } END { if (NR > 0) { print "Please run go fmt"; exit 1 } }'
GOPATH
=
${GOPATH}
support/path go
test
${PKG}
/...
go
fmt
${PKG}
/... |
awk
'{ print } END { if (NR > 0) { print "Please run go fmt"; exit 1 } }'
support/path go
test
${PKG}
/...
@
echo
SUCCESS
coverage
:
testdata/data/group/test.git
...
...
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