-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 986 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.PHONY: deps clean build
.PHONY: deps
deps:
go get -u ./...
.PHONY: clean
clean:
rm -rf ./api/api
rm -rf ./census_acs5/census_acs5
rm -rf ./geography/geography
.PHONY: build
build:
GOOS=linux GOARCH=amd64 go build -o api/api ./api
GOOS=linux GOARCH=amd64 go build -o census_acs5/census_acs5 ./census_acs5
GOOS=linux GOARCH=amd64 go build -o geography/geography ./geography
.PHONY: local
local:
sam local start-api --env-vars config.json
.PHONY: dev
dev:
reflex -c reflex.conf
.PHONY: test
test:
go test -v ./api
go test -v ./census_acs5
go test -v ./goegraphy
.PHONY: package
package:
sam package \
--template-file template.yaml \
--output-template-file packaged.yaml \
--s3-bucket codefordenver
.PHONY: deploy
deploy:
sam deploy \
--template-file packaged.yaml \
--stack-name shift-api-serverless-app-stack \
--capabilities CAPABILITY_IAM \
--region us-east-2
validate-circleci:
circleci config validate