-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (19 loc) · 712 Bytes
/
Makefile
File metadata and controls
29 lines (19 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
NAME := dcos-services
REVISION := $(shell git describe --tags --always --dirty="-dev")
export GO15VENDOREXPERIMENT=1
LDFLAGS := -X github.com/stratio/paas-oauth/version.REVISION=$(REVISION)
install:
go install -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./...
save:
godep save ./...
docker:
docker build -t $(NAME) .
test: docker
go test ./...
.PHONY: install save docker test
DIRS=$(subst $(space),$(newline),$(shell go list ./... | grep -v /vendor/))
TEST=$(subst $(space),$(newline),$(shell go list -f '{{if or .TestGoFiles .XTestGoFiles}}{{.Dir}}{{end}}' ./...))
NOTEST=$(filter-out $(TEST),$(DIRS))
test-compile: $(addsuffix .test-compile, $(TEST))
%.test-compile:
cd $* && go test -p 1 -v -c .