forked from lmammino/lambda-image-colors
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 622 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (26 loc) · 622 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
.PHONY: test
test: lint unit build integration
.PHONY: lint
lint:
GO111MODULE=on go vet -mod=vendor ./...
golint --set_exit_status cmd/...
.PHONY: unit
unit:
GO111MODULE=on go test -mod=vendor -cover -v -short ./...
.PHONY: build
build:
go mod tidy
go mod vendor
mkdir -p build
GOOS=linux go build -mod=vendor -o build/image-colors ./cmd/image-colors-lambda
cd build && zip image-colors.zip ./image-colors
echo "build/image-colors.zip created"
.PHONY: integration
integration:
tests/integration/run.sh
.PHONY: deploy
deploy:
cd stack && \
terraform plan -out plan && \
terraform apply plan && \
rm plan