Commit ad6899b0 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Export GOPATH in the Makefile

parent 405504cc
PREFIX=/usr/local PREFIX=/usr/local
VERSION=$(shell git describe)-$(shell date -u +%Y%m%d.%H%M%S) VERSION=$(shell git describe)-$(shell date -u +%Y%m%d.%H%M%S)
GOPATH=$(shell pwd)/_build export GOPATH=$(shell pwd)/_build
GOBUILD=GOPATH=${GOPATH} go build -ldflags "-X main.Version=${VERSION}" GOBUILD=go build -ldflags "-X main.Version=${VERSION}"
PKG=gitlab.com/gitlab-org/gitlab-workhorse PKG=gitlab.com/gitlab-org/gitlab-workhorse
all: clean-build gitlab-zip-cat gitlab-zip-metadata gitlab-workhorse all: clean-build gitlab-zip-cat gitlab-zip-metadata gitlab-workhorse
...@@ -26,8 +26,8 @@ _build: ...@@ -26,8 +26,8 @@ _build:
.PHONY: test .PHONY: test
test: testdata/data/group/test.git clean-build clean-workhorse all 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 } }' go fmt ${PKG}/... | awk '{ print } END { if (NR > 0) { print "Please run go fmt"; exit 1 } }'
GOPATH=${GOPATH} support/path go test ${PKG}/... support/path go test ${PKG}/...
@echo SUCCESS @echo SUCCESS
coverage: testdata/data/group/test.git coverage: testdata/data/group/test.git
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment