-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
26 lines (19 loc) · 1023 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
PHONY: get-deps code-analysis test all
all: get-deps code-analysis test
get-deps:
go get -t -v ./...
go install ./...
go build
go fmt ./...
code-analysis: get-deps
go vet -v ./...
test: get-deps create-mocks
go test -cover ./...
create-mocks: get-mockgen
`go env GOPATH`/bin/mockgen -source=./csasession/clientfactory/ec2client.go -destination=./csasession/clientfactory/mocks/ec2client_mock.go -package=mocks EC2Client
`go env GOPATH`/bin/mockgen -source=./csasession/clientfactory/kmsclient.go -destination=./csasession/clientfactory/mocks/kmsclient_mock.go -package=mocks KmsClient
`go env GOPATH`/bin/mockgen -source=./csasession/clientfactory/s3client.go -destination=./csasession/clientfactory/mocks/s3client_mock.go -package=mocks S3Client
`go env GOPATH`/bin/mockgen -source=./csasession/clientfactory/iamclient.go -destination=./csasession/clientfactory/mocks/iamclient_mock.go -package=mocks IAMClient
get-mockgen:
go get github.com/golang/mock/gomock
go install github.com/golang/mock/mockgen