-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 750 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 750 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
SHELL := /bin/bash
.PHONY: deps vet build test
deps:
go get -u github.com/Masterminds/glide
go get github.com/jstemmer/go-junit-report
glide install
vet:
glide nv | xargs go vet
build:
go build
install:
go install
test:
set -o pipefail;glide nv \
| xargs go test -v \
| tee /dev/tty \
| go-junit-report > unit-tests.xml
docker-build:
CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.Version=`cat VERSION`" -a -installsuffix cgo -o dist/envoy_docker .
release:
go get github.com/mitchellh/gox
go get github.com/tcnksm/ghr
gox -os "linux darwin windows" -arch "amd64 386" -ldflags "-X main.Version=`cat VERSION`" -output="dist/envoy_{{.OS}}_{{.Arch}}"
ghr -t $$GITHUB_TOKEN -u BSick7 -r envoy --replace `cat VERSION` dist/