forked from pottava/aws-s3-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (20 loc) · 836 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: all deps test build
all: build
deps:
@docker run --rm -it -v "${GOPATH}"/src/github.com:/go/src/github.com \
-w /go/src/github.com/pottava/aws-s3-proxy \
supinf/go-dep:0.5 ensure
test:
@docker run --rm -it -v "${GOPATH}"/src/github.com:/go/src/github.com \
-w /go/src/github.com/pottava/aws-s3-proxy \
supinf/golangci-lint:1.12 \
run --config .golangci.yml
@docker run --rm -it -v "${GOPATH}"/src/github.com:/go/src/github.com \
-w /go/src/github.com/pottava/aws-s3-proxy \
--entrypoint go supinf/go-gox:1.11 \
test -vet off $(go list ./...)
build:
@docker run --rm -it -v "${GOPATH}"/src/github.com:/go/src/github.com \
-w /go/src/github.com/pottava/aws-s3-proxy \
supinf/go-gox:1.11 --osarch "linux/amd64 darwin/amd64 windows/amd64" \
-ldflags "-s -w" -output "dist/{{.OS}}_{{.Arch}}"