-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (22 loc) · 912 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
25
26
27
28
29
30
# Makefile for Truss.
#
SHA := $(shell git rev-parse --short=10 HEAD)
MAKEFILE_PATH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
# Build native Truss by default.
default: truss
dependencies:
go get -u google.golang.org/genproto
go get -u github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
go get -u github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc
go get -u google.golang.org/protobuf/cmd/protoc-gen-go
go get -u github.com/envoyproxy/protoc-gen-validate
# Install truss
truss:
go install -ldflags '-X "main.version=$(SHA)"' github.com/DoNewsCode/truss/cmd/truss
# Run the go tests and the truss integration tests
test: test-go
test-go:
#GO111MODULE=on go test -v ./... -covermode=atomic -coverprofile=./coverage.out --coverpkg=./...
GO111MODULE=on go test -v ./...
.PHONY: test-go test truss dependencies