forked from manriquecms/paas-oauth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (25 loc) · 835 Bytes
/
Makefile
File metadata and controls
38 lines (25 loc) · 835 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
30
31
32
33
34
35
36
37
38
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 .
package:
bin/package.sh $(version)
change-version:
bin/change-version.sh $(version)
deploy:
bin/deploy.sh $(version)